Skip to content

Conversation

theohdv
Copy link

@theohdv theohdv commented Oct 8, 2025

Context

While upgrading our mobile application to Expo 52, we encountered a dependency conflict.
Expo 52 requires @react-native-async-storage/async-storage v2, while mixpanel-react-native v3 depends on v1. This leads to duplicate versions of Async Storage in node_modules.

Proposed Solution

Starting from v3.0.2, mixpanel-react-native supports using a custom async storage implementation. In cases where a project provides its own storage manager, the @react-native-async-storage/async-storage package should not be installed automatically.

To address this, this PR moves @react-native-async-storage/async-storage to peerDependencies, making it the responsibility of the consuming project to install it only if needed.

Additionally, since the only breaking change in Async Storage v2 is the increased minimum React Native version (and mixpanel-react-native does not enforce a minimum version), the peer dependency range has been set to support both v1 and v2.

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.

1 participant