React-native打包遇到问题:Could not get BatchedBridge

论坛 期权论坛 脚本     
匿名技术用户   2020-12-27 16:49   48   0

打包后使用时仍然找不到js bridge

需要在根目录使用命令:

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

并且如果没有assets文件夹,自己新建,另外注意自己的目录结构和上面的命令中的是否一致

以上

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP