unable to load script from assets index.android.bundle

关于react-native的0.56新版本服务报错问题

React Native unable to load script from assets index.android.bundle 解决方案


unable to load script from assets index.android.bundle_第1张图片
unable to load script from assets index.android.bundle_第2张图片

新版本问题,在项目根目录下执行:

step one: react-native init demo --verbose --version 0.55.4

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

step three: react-native run-android

step four: react-native start

你可能感兴趣的:(unable to load script from assets index.android.bundle)