reactjs - 不变违规 : RNCSafeAreaProvider was not found in the UIManager

标签 reactjs react-native native uimanager

我是 React Native 的新手,并且在使用常规 React 方面有一些经验,我正在尝试进行 React Native 导航设置,但是在遵循文档时遇到以下错误。我尝试从头开始并重新安装所有内容,因为我不知道此错误意味着什么:

Invariant Violation: RNCSafeAreaProvider was not found in the UIManager any advice on how to fix this would be appreciated.


react picture

最佳答案

对于遇到此错误的任何人 - 我的安装方式一定是错误的,因为从一个新项目开始并按此顺序执行命令 - 我没有遇到同样的问题:
expo init '项目名称'
cd '项目名称'
npm 运行安卓
npm install @react-navigation/native
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
npm install @react-navigation/stack

关于reactjs - 不变违规 : RNCSafeAreaProvider was not found in the UIManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63779663/

相关文章:

javascript - React 播放器缩略图

ios - FlatList onEndReached 被多次调用

scala - SBT:跨平台的方式来设置java.library.path吗?

java - java 中 native sun.misc.Unsafe 操作的源代码

javascript - localStorage 中设置的字符串获取为对象

javascript - 如何解决在测试中使用 <MemoryRouter/> 时需要唯一键的错误

css - React native iOS 中的垂直居中自定义字体

react-native - 访问 Expo SQLite 数据库的物理存储

reactjs - react native : Transform Error for Unexpected Token (

javascript - Redux表格: How to submit before function is triggered?