Navigator has been remove from this package报错
来源:互联网 发布:凤凰卫视的立场 知乎 编辑:程序博客网 时间:2024/06/05 15:19
react-native 使用navigator报错;
报错:Navigator is deprecated and has been removed from this package. It can now be installed and imported from
react-native-deprecated-custom-componentsinstead 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’
原来引用为import {Navigator} from ‘react-native’
阅读全文
0 0
- Navigator has been remove from this package报错
- 【React Native】React Native之Navigator has been remove from this package...的问题
- 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 ' +
- 解决:react native使用TabNavigator报错 PropTypes has been moved to a separate package...
- 文件下载 报错 ng.IllegalStateException: getOutputStream() has already been called for this
- 启动项目报错this web application instance has been stopped already.
- struts2报错: getWriter() has already been called for this response
- 文件能下载,但是报错:java.lang.IllegalStateException:getOutputStream() has already been called for this response
- jbpm实例显示图片的pic.jsp报错:getOutputStream() has already been called for this response
- java层将outputstream输出到jsp报错:getOutputStream() has already been called for this response
- 使用tomcat manage发布项目报错Illegal access: this web application instance has been stopped already
- 在jsp中使用response.getOutputStream()导致报错问题getOutputStream() has already been called for this response
- this license **** has been cancelled
- 修改Android framework源码报错(You have tried to change the API from what has been previously approved)
- X64 调试 ERR(1275) This driver has been blocked from loading
- package installer has been stopped怎么解决
- tomcat服务器,老是报this web application instance has been stopped already 错误
- eclipse中安装tomcat8
- 小程序模块化
- SENet详解
- Python爬虫入门-scrapy爬取拉勾网
- oralce 视图用法
- Navigator has been remove from this package报错
- SQL developer 输入JAVA.exe报错解决方案
- javac不是内部命令
- Linux 查看CPU信息,机器型号,内存等信息
- C#操作开机自启动(写进注册表)
- 赣南脐橙为什么那么“红”?
- Lombok-很强大的POJO注解器
- 2015携程笔试题
- reactNative中View组件的简单使用(六)