So I have created my Application using React native and just produced my first release-build. My problem now is that I can't get back to react natives debug-mode.
By following the documentation, this is what i did.
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/
This code generated the bundled index.android.bundle
and index.android.bundle.meta
Now every time I execute react-native run-android
, the javascript code-base wont update the application and I am not able to access the development(shake) menu in my app.
If I run react-native bundle
again, the code will update.
I guess this is a simple issue, but can't find any information how to return so the app isn't using the bundled version anymore.
And boom!
My quickest way is openning the file: $projectRoot\android\app\src\main\java\com\movies\MainApplication.java, going to the code like:
public boolean getUseDeveloperSupport() {
return false; //it was changed to false from BuildConfig.DEBUG when released
}
then changing the false to true to make the debug menu available again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With