新建的一个demo项目,报错,搜寻了一阵,找到了解决方法:
-
package.json
"react-native": "0.56.0",
//修改为:
"react-native": "0.55.4",
------------------------------------
"babel-preset-react-native": "5",
//修改为:
"babel-preset-react-native": "^4.0.0",
新建的一个demo项目,报错,搜寻了一阵,找到了解决方法:
"react-native": "0.56.0",
//修改为:
"react-native": "0.55.4",
------------------------------------
"babel-preset-react-native": "5",
//修改为:
"babel-preset-react-native": "^4.0.0",