Navigator is deprecated and has been removed from this package. It can now be installed and imported from
`react-native-deprecated-custom-components` instead of `react-native`. Learn about alternative navigation
solutions at http://facebook.github.io/react-native/docs/navigation.html
Navigator
D:\Test2\RNApp\node_modules\react-native\Libraries\react-native\react-native-implementation.js:124:6
<unknown>
D:\Test2\RNApp\Main.js:359:28
错误原因:
Navigator从react-native库中移除,添加到了react-native-deprecated-custom-components库中;
解决方案:
1. 安装react-native-deprecated-custom-components库,参考: React Native项目导入js库-react-native-swiper库
2. 导入react-native-deprecated-custom-components库
import {Navigator} from 'react-native-deprecated-custom-components';