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.
You can override getJSBundleFile() function in your ReactApplication class to return a custom file path.
@Nullable
@Override
protected String getJSBundleFile() {
return "/your/bundle/path/bundle.file.name.bundle";
}
After that, just generate the bundle using react-native bundle, then put the generate bundle in the specified path in your device.