您的位置:首页 > Web前端 > React

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

2017-04-12 20:26 621 查看
如果你是 React Native 的初学者 可能遇见这样的错误 :Could not get BatchedBridge, make sure your bundle is packaged correctly

解决方法如下: 在 android 工程中的src下面创建assets文件夹 然后执行下面的命令:

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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  native android react
相关文章推荐