我在这里运行代码http://rationalappdev.com/react-native-list-app-complete-how-to-guide/,但收到错误Could not get BatchedBridge, make sure your bundle is packaged properly"
。
我搜索并尝试了很多方法,但仍然遇到了错误。
例如
在终端上,运行react-native start --reset-cache
在另一个终端中,运行react-native run-android
我的机器人是ASUS_X008DC - 7.0
。
由于
答案 0 :(得分:0)
更新package.json中的依赖项。它对我有用。
in dependencies:
"react": "16.2.0",
"react-native": "0.52.2"
devDependencies中的:
"babel-jest": "22.1.0",
"babel-preset-react-native": "4.0.0",
"jest": "22.1.4",
"react-test-renderer": "16.2.0"
答案 1 :(得分:0)
我在“ react”:“ 16.11.0”,“ react-native”:“ 0.62.2”时遇到了同样的问题,我删除了位于project / android / build中的build文件夹并做了npm start
与react-native run android
一起使用,并且有效