报错:'Navigator is deprecated and has been removed from this package. It can now be installed
2024-09-03 08:58:42
报错:'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'
这是因为版本升级到0.43以上的话,Navigator不能直接从react-native里面获取了,
解决方案:
npm install react-native-deprecated-custom-components
--save
然后在引用的地方
import {Navigator}
from react-native-deprecated-custom-components
最新文章
- Android WebService
- K-MEANS算法总结
- Js navigator.onLine 获取设备是否可以上网、连接网络
- javaweb-四则运算
- SharePoint咨询师之路:备份和恢复系列二 - 备份服务器场
- Python的基础--对象 转
- 【转】Eclipse配置Struts2问题:ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- Web前端新人笔记之CSS字体
- iPhone丢失后通过iccid找回流程
- Activity的LaunchMode情景思考
- h5标签基础 meta标签
- wpf研究之道——datagrid控件分页
- Maven(六)Eclipse使用Maven插件创建项目
- mysql查询今天、昨天、上周
- [C++] const与重载
- react中的数据请求
- es6基础(7)--函数扩展
- gparted增加Ubuntu14.04根目录空间(转)
- tendermint 跟tikv结合
- 我的Chrome插件---纪录