links: React Native MOC
How to debug Android Release builds?
Sometimes a crash might happen only on Release builds but not on Debug builds. You might want to check the Android logs during the app crash.
Open the AndroidManifest.xml file
Add the following properties to application tag
android:debuggable="true"
tools:ignore="HardcodedDebugMode"
Open app/build.gradle and add debuggable true to the release type
buildTypes {
release {
debuggable true
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
tags: android, react-native , debugging
sources: