react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager

Open cmdparkour opened this issue 3 years ago • 2 comments

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

cmdparkour avatar Oct 08 '22 11:10 cmdparkour

The ratio is about 1 in 10,000

cmdparkour avatar Oct 08 '22 11:10 cmdparkour

the warning device is android, but i don't know why it happened

cmdparkour avatar Oct 08 '22 11:10 cmdparkour

I had the same problem, do u resolved ?

imRz1015 avatar Nov 18 '22 01:11 imRz1015

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/cli from 5.0.1-alpha to 9.3.2
  • Deleted node_modules and ios/Pods
  • Reran yarn install
  • Reran pod install from the ios directory
  • Reran yarn start and yarn react-native run-ios

ianjsikes avatar Nov 28 '22 18:11 ianjsikes

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?

timoisalive avatar Jan 11 '23 08:01 timoisalive

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?

crukundo avatar Feb 02 '23 08:02 crukundo

It’s not an issue with the library. It’s a common error you get when you’ve not installed a package correctly

jacobp100 avatar Feb 02 '23 08:02 jacobp100

same issue in Android with RN cli package installed and it's work correctly on iOS

Desintegrator avatar Feb 07 '23 14:02 Desintegrator