报错:'Navigator is deprecated and has been removed from this package. It can now be installed(示例代码

Posted bokeyuan_dan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错:'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 ‘ +
           ‘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

以上是关于报错:'Navigator is deprecated and has been removed from this package. It can now be installed(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

python报错'str' object is not callable

jmeter报错Required String parameter 'auntId' is not present

webpack报错:' CleanWebpackPlugin is not a constructor'

关于TypeError: 'zip' object is not subscriptable报错的处理

安装libspatiaLite报错,error: 'libsqlite3' is required

pip install 报错 TypeError: 'module' object is not callable