在UIManager错误中未发现永久违规:requireNativeComponent:“ RNCSafeAreaProvider”

时间:2020-06-21 18:48:39

标签: react-native react-navigation

大家好,有人可以帮我解决这个问题吗?我已经尝试了所有可能的解决方案,但都没有遇到同样的问题。

enter image description here

这是我的package.json

enter image description here

3 个答案:

答案 0 :(得分:0)

您可以尝试在您的应用文件夹中运行它:

$ cd ios && pod install

答案 1 :(得分:0)

这个答案帮助了我。
Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager

尝试安装react-native-safe-area-view。
$ yarn add react-native-safe-area-view
然后重新安装吊舱。
$ npx pod-install ios
然后,开始本机反应。

答案 2 :(得分:0)

尝试使用以前或不同版本的 react-native-safe-area-context。 通过降级到一个次要版本,它对我有用。