react-native 问题总结

给npm换源

1.通过config配置指向国内源

npm config set registry http://registry.cnpmjs.org //配置指向源
npm info express  //下载安装第三方包
2.通过npm命令指定下载源
npm --registry http://registry.cnpmjs.org info express
 
gradle 下载过慢
先将gradle.zip下载到本地,然后修改 D:projects eact eact-native eact-native-cliGaGaMallandroidgradlewrappergradle-wrapper.properties
distributionUrl=file:///D:/projects/react/react-native/react-native-cli/gradle-2.10-all.zip
最后重新运行react-native run-android

原文地址:https://www.cnblogs.com/rigid/p/5818724.html