项目地址:https://github.com/dwicao/react-native-login-screen

调试环境:

WebStorm 2017.2
Build #WS-172.3317.70, built on July 14, 2017

JRE: 1.8.0_152-release-915-b5 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Mac OS X 10.12.6

将工程目录下面pacakge.json中的

"dependencies": {
  "react": "15.4.1",
  "react-native": "0.39.2",
  "react-native-router-flux": "^3.37.0"
}

修改为:

"dependencies": {

  "react": "16.0.0-alpha.12",

  "react-native": "0.46.0",

  "react-native-router-flux": "^3.37.0"

}后运行APP,不再出现错误。

版本冲突造成的原因?

posted on 2017-07-23 22:08  PythonGo  阅读(4213)  评论(0编辑  收藏  举报