导入其他项目到reactnative出现500错误的问题

新建终端输入运行:react-native init [项目名] --save 0.58.6 /该开发版本错误较少/

首先将关键js文件夹放入该新建项目中
在这里插入图片描述
删除nonde_modules文件夹(右击删除,不要在电脑文件夹里面删除)

依次运行两串代码:
npm install --save [email protected]

yarn add react-native-cli

不出意外,能稳定运行在模拟器中

猜你喜欢

转载自blog.csdn.net/qq_39944559/article/details/91593593