1、查看版本 :react-native —version
2、更新react-native-cli : npm update -g react-native-cli
3、查看react-native 最新信息 : npm info react-native
4、进入项目,修改版本
2、更新react-native-cli : npm update -g react-native-cli
3、查看react-native 最新信息 : npm info react-native
4、进入项目,修改版本
5、利用终端,进入主目录,执行 npm install
6、查看版本
这是我在学习react-native过程中写的两个简单的App,大家可以下载看看,对初学者还是有帮助的,如果觉得还可以,给个星,嘿嘿,谢谢,与君共勉!
https://github.com/jiaoyindong/react-native-simpleApp.git
https://github.com/jiaoyindong/react-native-hubaoTV.git