报错:'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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-10-10
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2021-11-02
  • 2021-09-10
  • 2021-06-05
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案