How to use offline bundle on android?
I didn`t see the document about use offline bundle on android.
I tried to uncomment the code in build.gradle.
I tried using an unsigned APK file and installing that, but when I went to install it on my Android tablet, it gave me an error of Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES].
I imagine this is because the APK file wasn't signed and the tablet was not happy with this. So, after generating the React Native bundle file I was able to generate a signed APK file, as normal, via Android Studio.
By the way, our app is a fully functioning Android app that already exists in the Play Store and we are just adding React Native to it in bite-sized pieces, because it's awesome.
So to summarize, here were my steps:
1) Generate React Native bundle:
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android//src/main/assets/index.android.bundle --assets-dest android//src/main/res/
2) Generate a Signed APK file from Android Studio.
3) Install Signed APK File to USB device:
adb -d install -r
4) Profit!