初始化解决:
npm config set registry=http://registry./
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/
这个是运行这个代码才会生效
source ~/.bash_profile这个是解决SDKlocation找不到
如果觉得《React Native 工程初始化过慢解决办法+运行时产生的问题解决方案》对你有帮助,请点赞、收藏,并留下你的观点哦!