解决React Native报错:Navigator is deprecated and has been removed from this package.
2018-11-12 19:27
585 查看
版权声明:原创文章,转载请说明出处 https://blog.csdn.net/Destiny_strive/article/details/83996082
报错如下:
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'
看报错信息应该是RN版本升级把Navigator移除了,我现在版本是0.57.0。
要使用Navigator应该先安装:
[code]npm install react-native-deprecated-custom-components --save
然后在要用的地方导入,即可使用Navigator。
[code]import {Navigator} from 'react-native-deprecated-custom-components';
阅读更多
相关文章推荐
- Navigator is deprecated and has been removed from this package
- 'Navigator is deprecated and has been removed from this package. It can now be installed ' +
- 报错:'Navigator is deprecated and has been removed from this package. It can now be installed
- Server response (410): Gone (This API has been deprecated and removed from legacy PyPI解决方法
- 解决警告:View.propTypes has been deprecated and will be removed in a future version of ReactNative
- Navigator has been remove from this package报错
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- relying on packaging to define the extension of the main artifact has been deprecated and is schedul
- Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a fu
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Command line warning D9035 : option 'clr:oldsyntax' has been deprecated and will be removed in a fut
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 项目名 is required and cannot be removed from the server解决
- warning D9035 : option 'Wp64' has been deprecated and will be removed in a future
- php 报: 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the f
- Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future relea
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: