简体   繁体   English

在 UIManager 中找不到 React Native“RNCSafeAreaView”

[英]React Native "RNCSafeAreaView" was not found in the UIManager

在此处输入图片说明

I am running a react-native application on Mac.我在 Mac 上运行本机应用程序。 but I am getting "RNCSafeAreaView" was not found in the UIManager.但我在 UIManager 中找不到“RNCSafeAreaView”。

update version of this module by typing following command in terminal:通过在终端中键入以下命令来更新此模块的版本:

npm install react-native-safe-area-context@1.0.2 npm install react-native-safe-area-context@1.0.2

it will solve this problem它将解决这个问题

Had the same issue.有同样的问题。 The issue was that react-native-safe-area-view docs assumed that Autolinking is supported by the react-native-safe-area-context library when its clearly not.问题是react-native-safe-area-view 文档假定react-native-safe-area-context库支持自动链接,但显然不支持。 Had to link manually by running on cli react-native link react-native-safe-area-context as the official react-native-safe-area-context docs point out.正如官方react-native-safe-area-context 文档指出的那样,必须通过在 cli react-native link react-native-safe-area-context上运行来手动react-native link react-native-safe-area-context

For more reference the libraries official docs:更多参考图书馆官方文档:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 UIManager 中找不到“RNCSafeAreaView” - "RNCSafeAreaView" was not found in the UIManager 将本机UIManager.measureInWindow坐标反应为android MotionEvent坐标 - React native UIManager.measureInWindow coords to android MotionEvent coords 在 UIManager 中找不到 requireNativeComponent - requireNativeComponent was not found in UIManager 我应该使用哪个线程在react-native本地ui组件内调用uiManager调用? - Which thread am I supposed to use to call uiManager calls inside a react-native native ui component? React Native 中的 java.lang.ArrayIndexOutOfBoundsException facebook.react.uimanager.ViewGroupDrawingOrderHelper.getChildDrawingOrder - java.lang.ArrayIndexOutOfBoundsException in facebook.react.uimanager.ViewGroupDrawingOrderHelper.getChildDrawingOrder in React Native 在Android ICS上编译react-native分支:java.lang.NoClassDefFoundError:com / facebook / react / uimanager / ReactProp - Compiling react-native fork on Android ICS: java.lang.NoClassDefFoundError: com/facebook/react/uimanager/ReactProp 在 UIManager 中找不到“RNSScreen”(仅限 Android) - "RNSScreen" was not found in the UIManager (Android only) react-native-video [android] undefined 不是一个对象(评估 NativeModuels.UIManager.RCTVideo.Constants') - react-native-video [android] undefined is not an object (evaluating NativeModuels.UIManager.RCTVideo.Constants') 未找到反应本机命令 - React native command not found 未找到本机 firebaseURL - react native firebaseURL not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM