1. 升级 react native 到 0.60

更新 react-native-cli 到 2.0 以上版本

npm install -g react-native-cli

自动更新

react-native upgrade 0.60.5

可能会出错,如果出错请参考 React Native upgrade guide 手动更新

1.1. React Native

1.2. iOS

依赖换成用 CocoaPods 管理

1.2.1. Build input file double-conversion cannot be found

参考 https://github.com/facebook/react-native/issues/21168#issuecomment-422431294

$ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
$ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

1.3. Android

AndroidX

1.4. References

results matching ""

    No results matching ""