Skip to content

Conversation

@lalitguy
Copy link
Contributor

@lalitguy lalitguy commented Dec 27, 2025

Summary

Removed react-native-safe-area-context from dependencies to prevent duplicate native module installations.

Reason

Having this package as a hard dependency can lead to multiple versions of the same native module being installed, which causes build issues in Expo.

Fix

  • Removed react-native-safe-area-context from dependencies. (It was not used in the codebase)

Verification

Tested this change by installing the forked branch in an Expo app.
expo-doctor no longer reports duplicate react-native-safe-area-context installations and the calendar renders correctly.

Related issue

Fixes #2728 #2644

@nopitown
Copy link

nopitown commented Jan 5, 2026

Why is this a dependency (even a peer dependency) if it's not used in the source code? or is it?

@lalitguy
Copy link
Contributor Author

lalitguy commented Jan 5, 2026

@nopitown Thanks for pointing it out.
I rechecked the codebase and confirmed that it isn’t actually used.

It was previously listed as a dependency, so I assumed it was required and moved it to peerDependencies. After verifying the usage, I’ve now removed it entirely and updated the MR in the latest commit.

@nopitown
Copy link

nopitown commented Jan 5, 2026

Thanks @lalitguy, hopefully a maintainer can approve this PR. There are many users waiting for this to be fixed 👀

@lalitguy lalitguy changed the title fix: move react-native-safe-area-context to peerDependencies fix: removed react-native-safe-area-context from Dependency Jan 6, 2026
@lalitguy lalitguy changed the title fix: removed react-native-safe-area-context from Dependency fix: removed unused react-native-safe-area-context from Dependency Jan 18, 2026
@twolfvb
Copy link

twolfvb commented Jan 24, 2026

@M-i-k-e-l @nitzanyiz could you guys review this?

@M-i-k-e-l M-i-k-e-l merged commit 965a7cc into wix:master Jan 29, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

react-native-safe-area-context duplicate

4 participants