Could not get BatchedBridge, make sure your bundle is packaged correctly问题解决

在你的react native项目的根目录下执行以下命令:

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/


其中assets的路径是你项目中android平台下的assets的路径。

执行完命令后,再次运行app就可以了

发布了68 篇原创文章 · 获赞 11 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/ddddwwww2/article/details/53349565