Navigator is deprecated and has been removed from this package
2017-11-02 10:23
519 查看
0.49版本开发React Native 项目时,从react-native中导入Navigator时报如下图错误
查找原因得知,因为react-native版本升级到0.43以上以后,Navigator不能直接从react-native中导入获取了
解决方法:
在命令行中npm install react-native-deprecated-custom-components,安装成功以后,把引用的地方改为import {Navigator} from react-native-deprecated-custom-components即可。
查找原因得知,因为react-native版本升级到0.43以上以后,Navigator不能直接从react-native中导入获取了
解决方法:
在命令行中npm install react-native-deprecated-custom-components,安装成功以后,把引用的地方改为import {Navigator} from react-native-deprecated-custom-components即可。
相关文章推荐
- 报错:'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解决方法
- Navigator has been remove from this package报错
- 解决警告:View.propTypes has been deprecated and will be removed in a future version of ReactNative
- warn: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future
- Command line warning D9035 : option 'clr:oldsyntax' has been deprecated and will be removed in a fut
- Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a fu
- Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be
- SharePoint Designer Check In and Check Out Error – Cannot perform this operation.The file is no longer check out or has been del
- Geoserver GeoWebCache 切图失败 This requested used more time than allowed and has been forcefully stopped. Max rendering time is 60.0s
- warning D9035 : option 'Wp64' has been deprecated and will be removed in a future
- relying on packaging to define the extension of the main artifact has been deprecated and is schedul
- Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
- This function ereg_replace() has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged
- Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future relea
- Import of META-INF/cxf/cxf-extension-soap.xml has been deprecated and is unnecessary
- Rails Error: rails a copy of has been removed from the module tree but is still active
- Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a fu
- 1287, "'@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transa