React Native 工程初始化过慢解决办法+运行时产生的问题解决方案

初始化解决:

npm config set registry=http://registry.npm.taobao.org/


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找不到

猜你喜欢

转载自blog.csdn.net/android_glimmer/article/details/53693260