新建终端输入运行:react-native init [项目名] --save 0.58.6 /该开发版本错误较少/
首先将关键js文件夹放入该新建项目中
删除nonde_modules文件夹(右击删除,不要在电脑文件夹里面删除)
依次运行两串代码:
npm install --save [email protected]
yarn add react-native-cli
不出意外,能稳定运行在模拟器中
新建终端输入运行:react-native init [项目名] --save 0.58.6 /该开发版本错误较少/
首先将关键js文件夹放入该新建项目中
删除nonde_modules文件夹(右击删除,不要在电脑文件夹里面删除)
依次运行两串代码:
npm install --save [email protected]
yarn add react-native-cli
不出意外,能稳定运行在模拟器中