React Native踩坑记录

前端之家收集整理的这篇文章主要介绍了React Native踩坑记录前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

添加依赖

报错信息:

npm WARN react-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.

解决方案:

npm install -save react@~15.3.1

在package.json中也可以添加依赖

"dependencies": {
    "react": "^15.3.2","react-native": "^0.35.0","react-native-orientation": "^1.17.0","react-native-scrollable-tab-view": "^0.6.0",}
原文链接:https://www.f2er.com/react/305379.html

猜你在找的React相关文章