Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wongk opened this issue Mar 26, 2024 · 5 comments

Comments

@wongk
Copy link

wongk commented Mar 26, 2024

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

  • Device: iOS Simulator (iPhone 15 Pro Max)
  • OS: iOS 17.4
  • react-native-picker-select version: 9.0.1
  • react-native version: 0.73.4
  • expo sdk version: 50.0.8

Reproduction and/or code sample

n/a

@BlomenJoel
Copy link

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

@wongk
Copy link
Author

wongk commented Apr 3, 2024

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
Copy link

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

@steven410
Copy link

I'm also hitting this issue. Nearly all solutions I've found mention the need for installing @react-native-picker/picker but I have done that and still get the error.

@kevellis124
Copy link

I was hitting the same issue even when i did a reload of the app after all of the install instructions. It began to work without any further changes after killing the expo process and re-running npx expo run:ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants