lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.73k stars 490 forks source link

ERROR Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager. #546

Open wongk opened 3 months ago

wongk commented 3 months ago

Describe the bug
The following error occurs when trying to display the picker on iOS:

ERROR Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager.

This error is located at: in RNCPicker (at PickerIOS.ios.js:198) in RCTView (at View.js:116) in View (at PickerIOS.ios.js:197) in PickerIOS (at Picker.js:171) in Picker (at src/index.js:474) ...

To Reproduce
Steps to reproduce the behavior:

  1. On iOS, simply attempt to display the picker.

Expected behavior
The picker displays successfully.

Screenshots
n/a

Additional details

Reproduction and/or code sample
n/a

BlomenJoel commented 3 months ago

Got the same issue, gonna try to upgrade since there's new releases. I´ll let you know if I find anything!

wongk commented 3 months ago

What I have found is that if you clean up enough things (Pods dir, Podfile.lock, node_modules dir), and then you run pod install manually from the ios dir, it will start working. It needs to regenerate the workspace. This is not specific to this control. I have seen this several times. It seems to be pervasive with react native on iOS when updating dependencies.

JordanMRichards commented 2 months ago

This package depends on @react-native-picker/picker. You must install it to avoid this error.