【发布时间】:2017-06-19 17:56:26
【问题描述】:
我的代码中没有使用 Navigator。但是我收到了这个错误。
"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
"react-native-deprecated-custom-components": "^0.1.0",
"react-native-router-redux": "^0.2.2",
"react-redux": "^5.0.5",
"redux": "^3.7.0"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.0.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
}
谁能帮帮我?
【问题讨论】:
-
react-navigation依赖它吗?看起来react-native-implementation的第 120 行使用了它。 -
不,不需要。
-
那么,我该如何解决呢?
-
导航器已弃用!其他选项将在此处提及:facebook.github.io/react-native/docs/navigation.html