Describe the bug
[React] { [Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider] name: 'Invariant Violation',
framesToPop: 1 }
To Reproduce
Steps to reproduce the behavior:
- Update from expo SDK 55 to 56
Solution
This error occurs because react-native-input-select bundles its own copy of react-native-safe-area-context, creating a duplicate registration conflict with the one in your project.
To fix this error, Add a package resolution alias In your package.json, force both packages to use the same instance:
{
"dependencies": { ... },
"resolutions": {
"react-native-safe-area-context": "<your-current-version>"
}
}
Then run yarn install (resolutions only work with Yarn).
If you're using npm/pnpm, use this instead:
For npm — add to package.json:
"overrides": {
"react-native-safe-area-context": "<your-current-version>"
}
For pnpm — add to package.json:
"pnpm": {
"overrides": {
"react-native-safe-area-context": "<your-current-version>"
}
}
Describe the bug
[React] { [Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider] name: 'Invariant Violation',
framesToPop: 1 }
To Reproduce
Steps to reproduce the behavior:
Solution
This error occurs because react-native-input-select bundles its own copy of react-native-safe-area-context, creating a duplicate registration conflict with the one in your project.
To fix this error, Add a package resolution alias In your package.json, force both packages to use the same instance:
Then run yarn install (resolutions only work with Yarn).
If you're using npm/pnpm, use this instead:
For npm — add to package.json:
For pnpm — add to package.json: