react-native 构建工程注意点

react-native更新到0.57版本之后,新建工程总会出现无法安装js文件问题。
具体表现是
根据网上的搜索,可以使用如下步骤解决:
- react-native init project
 - cd project
 - npm add @babel/runtime
 - npm install
 - mkdir -p android/app/src/main/assets
 - react-native run-android
 
步骤3,4很重要
从github上下载的代码版本不一致
参考链接
- https://github.com/react-community/create-react-native-app/issues/721
 - https://github.com/facebook/react-native/issues/21310
 
以上是 react-native 构建工程注意点 的全部内容, 来源链接: utcz.com/z/382402.html
