-
Notifications
You must be signed in to change notification settings - Fork 289
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
RNCAndroidDropdownPicker was not found in the UIManager
#428
Comments
On Android I fixed this problem trying a Manual Installation.
I didn't try on iOS tho. Don't forget to restart with npx react-native start and rebuild your project. Good luck. |
@Twinbird24 I solved this problem only by creating a new expo application via the expo cli. Then I added the Picker package and everything worked. Here is my package.json
|
@YakovlevCoded I'm not sure I understand your solution. The issue is not that I'm having trouble loading the Picker in my app per se, it's that I was having trouble loading it when it was installed as part of a 3rd party package (i.e. a component library dependency had this Picker as its dependency). I'm also not using Expo so I'm not sure what you said applies to me anyway. @fabiofa87 I think the same applies to your solution, my problem wasn't getting the Picker to load in my app, it's getting it to load without having to explicitly add it as a dependency because it's already a dependency of the component lib that I'm importing. I have the Picker installed as a dependency currently and it's working, and have the Picker as a peer-dependency on the 3rd party component lib. It's not the best solution but it'll have to do for now. Otherwise I think I would have to add some script to my component lib to set-up autolinking or modify the native code of the consumer to get the picker to work without needing to specify it as a peer-dependency. |
Try Restarting the Simulator/Metro Bundler after I forget this every single time! |
I'm getting the exact same error when importing a component from an external library that uses this package. Similarly the component works fine when the consuming app directly adds this package to its dependencies, but not without doing that. Did you ever find a solution? I'm also going to have to add it to the peer deps of the library and add it to the main app, but like you say it's less than ideal. |
@palmer-rm Haven't found anything yet, but I haven't been looking. I still have it as a peer dep in the component library and have it added to my main project as a dependency—this has been working fine so far so haven't been spending more time on finding a proper solution. |
I'm getting an error on both iOS and android (
requireNativeComponent: "RNCPicker" was not found in the UIManager
andRNCAndroidDropdownPicker was not found in the UIManager
, respectively) when I try to use a component from a private component library that wraps this picker.The component library has @react-native-picker/picker (2.4.1) installed as a dependency, and loads the picker just fine when running tests or inside of Storybook. This leads me to believe that this picker loads some native code (i.e. via autolinking), which somehow isn't being properly loaded when I pull in this picker through the 3rd party component library.
The text was updated successfully, but these errors were encountered: