请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

在使用最新版 react-native 0.69.3 版本报错(window - 安卓环境)

react-native-navbar-plus 插件在react-native 0.69.3中引入后报错

ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from ‘deprecated-react-native-prop-types’.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

网上搜索看了好像是:
Same issue here after upgrading to 0.69, there are a lot of external libraries still using ViewPropTypes. Perhaps an unpopular opinion, but maybe it’s too early to deprecate ViewPropTypes completely?

不知道是不是这个问题, 我不用这个插件就可以正常渲染

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2022-08-04 09:28:03

新版本react-native-safe-area-plus与react-native-navbar-plus已解决该问题,将它们升级到2.6.1版本即可。

如果有淘宝景象需要关闭。

0 回复 有任何疑惑可以回复我~
  • 我也是这个问题,除了老师这个组件 还有别的可以临时用吗
    回复 有任何疑惑可以回复我~ 2022-08-08 11:52:41
  • 我也是0.69.3遇到了同样的问题,试了很多办法都不行卡在这了,ViewPropTypes在0.68还只是个告警,0.69移除后就变成了error,还没找到替代方案,后来我把package.json的包版本全部保持和老师的一致,但却出现了JAVA环境的相关的编译错误,老师的react-native-cli用的什么版本呢,感觉用最新的版本有好多的坑,我还是和老师讲课时的版本保持一致好了- -!
    回复 有任何疑惑可以回复我~ 2022-08-16 11:08:22
  • 我是0.69.5,遇到了同样的问题,并且react-native-safe-area-plus 也会报这个错误
    回复 有任何疑惑可以回复我~ 2022-08-29 23:52:05
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信