Indexed unbundling is not working but file based unbundling is working.[React Native Android] #21272
Labels
Platform: Android
Android applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
Indexed unbundling:
"react-native unbundle --platform android --dev false --entry-file index.android.js --bundle-output ../src/main/assets/index.android.bundle --assets-dest ../src/main/res/ --indexed-unbundle --config ../../../../packager/config.js"
Create a single file which is stripped down version of typical bundle. But app crashes on loading react view with this bundle.
Could not get BatchedBridge, make sure your bundle is packaged properly” on start of app
File based unbundling
command
"react-native unbundle --platform android --dev false --entry-file index.android.js --bundle-output ../src/main/assets/index.android.bundle --assets-dest ../src/main/res/ --config ../../../../packager/config.js"
No Crash but creates index.android.bundle file of 16KB and create supporting patches of all the js code base in folder js-modules.
If i use this files based unbundling with code push will it work? or is there any way.
Thanx in advance.
The text was updated successfully, but these errors were encountered: