在使用最新版 react-native 0.69.3 版本报错(window - 安卓环境)
来源:5-9 基于react-navigation的APP导航框架搭建-顶部导航-

屈文敏
2022-08-03
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?
不知道是不是这个问题, 我不用这个插件就可以正常渲染
1回答
-
CrazyCodeBoy
2022-08-04
新版本react-native-safe-area-plus与react-native-navbar-plus已解决该问题,将它们升级到2.6.1版本即可。
如果有淘宝景象需要关闭。
052022-10-24
相似问题