react-native-safe-area-context
react-native-safe-area-context copied to clipboard
Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager
i meet this problem in my app online, but in develop and test im my computer, i don't meet the same error. So i don't know what happen, the only reason i thought was: the js engine work in a thread and the android init react native work in other thread, and the android init RN thread quicker than js enging thread more time, but in some case, the android thread wasn't work quick than js enging and the question is show
Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager., in RNCSafeAreaProvider in Unknown in s in Unknown in D in RCTView in Unknown in RCTView in Unknown in E
The ratio is about 1 in 10,000
the warning device is android, but i don't know why it happened
I had the same problem, do u resolved ?
I had the same problem. It seemed like after doing a React Native upgrade (from 0.67.5 to 0.70.6), this library was not being auto-linked. It turns out I just forgot to upgrade my version of @react-native-community/cli. Here are the steps I took that fixed my problem:
- I upgraded
@react-native-community/clifrom5.0.1-alphato9.3.2 - Deleted
node_modulesandios/Pods - Reran
yarn install - Reran
pod installfrom theiosdirectory - Reran
yarn startandyarn react-native run-ios
I'm running into this issue as well.
It works fine if I run the app in Expo Go, but fails on our custom development client.
I guess this could point towards a library linking issue? We are building the dev client on EAS. I just upgraded to from Expo SDK 46 to 47 if that would help, but no difference. And just to make sure, this library doesn't need any plugin information in the app.json right?
Wonder why this issue was closed as this seems to be a new and recurring problem. What's the way forward? Has anybody found a solution?
It’s not an issue with the library. It’s a common error you get when you’ve not installed a package correctly
same issue in Android with RN cli package installed and it's work correctly on iOS