Invariant violation : tried to register two views with the same name

🐛 Bug Report

Summary of Issue

I have installed the Picker component using npm install @react-native-picker/picker --savebut then I discovered that the expo cli provide a cmd for installing the component using the expo install @react-native-picker/picker
after perform an npm uninstall @react-native-picker/picker and using the expo cmd an error appeared when i use the Picker component within my app **Invariant violation : tried to register two views with the same name RNCPicker **
The same error occurred previously with the @react-native-community/datetimepicker library but It was resolved when I have upgraded to the latest expo version for both the cli and the client, but now I’m using the latest one.

Environment – output of expo diagnostics & the platform(s) you’re targeting

image

Reproducible Demo

image

Steps to Reproduce

  1. npm install @react-native-picker/picker –save
  2. npm uninstall @react-native-picker/picker
  3. expo install @react-native-picker/picker
  4. now use the Picker component

Expected Behavior vs Actual Behavior

** Expected Behavior : ** The Picker component appears within the app.
** Actual Behavior : ** Exception Invariant violation : tried to register two views with the same name RNCPicker

1 possible answer(s) on “Invariant violation : tried to register two views with the same name