When I am trying to use import {createStackNavigator} from @react-navigation/stack
, it gives me an error
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
I have tried finding a solution, but nothing helps.
ERROR Invariant Violation: Tried to register two views with the same name RNDateTimePicker ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider error with @react-navigation/stack
It means you have installed same extension multiple times.
Running "npm dedupe" command solved my problem.
or Yarn install (The dedupe command isn’t necessary. yarn install will already dedupe.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With