我在代码中没有使用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"
}
任何人都可以帮助我?
答案 0 :(得分:3)
当我的IDE自动添加以下行时发生这种情况:
library(matrixStats)
dt[, (1:3) := as.data.table(rowCumsums(as.matrix(.SD)))]
表示:该文件中的所有内容都无法正常工作。通过更改为:
解决了这个问题import * as AsyncStorage from "react-native";
答案 1 :(得分:2)
var polygons = assetVal.forEach(function (a) {
console.log('a.poly',a.polygon)
return a.polygon
})
,因此不再允许这样做:
Navigator
从' react-native'中删除导航器。进口并用它代替:
import { Navigator } from 'react-native'
答案 2 :(得分:0)
导航实验(以前为Navigator
)已从React Native中删除,并已移至单独的包react-native-deprecated-custom-components
。它已被弃用,不推荐使用。要修复旧代码,您可以执行以下步骤
安装包react-native-deprecated-custom-components
npm install react-native-deprecated-custom-components --save
导入NavigationExperimental(以前为Navigator
)
import NavigationExperimental from 'react-native-deprecated-custom-comreponents';
将Navigator
替换为NavigationExperimental.Navigator