Could not get BatchedBridge, make sure your bundle is packaged correctly

首先在项目的目录android/app/src/main/下面 查看有没有assets文件夹,如果没有手动创建一个。
然后打开终端 cd到项目根目录执行下面命令

react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/  

你可能感兴趣的:(Could not get BatchedBridge, make sure your bundle is packaged correctly)