You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Starting from version 3.0.0, we have introduced support for Expo, React Native for Web, and other platforms utilizing React Native that do not support iOS and Android directly. To enable this feature, initialize Mixpanel with an additional parameter, <code>useNative</code>, set to false(<code>const mixpanel = new Mixpanel( "YOUR_MIXPANEL_TOKEN", trackAutomaticEvents, useNative );</code>). This will activate JavaScript mode. Please note that this functionality is currently in beta testing. For further details and installation guidelines, refer to the release notes available at Mixpanel React Native <ahref="https://github.com/mixpanel/mixpanel-react-native/releases/tag/v3.0.0-beta.1">v3.0.0-beta.1</a>.</p>
141
+
<h3>Expo and React Native for Web support (3.0.2 and above)</h3>
142
+
<p>Starting from version 3.0.2, we have introduced support for Expo, React Native for Web, and other platforms utilizing React Native that do not support iOS and Android directly.
<p>When JavaScript mode is enabled, Mixpanel utilizes <ahref="https://react-native-async-storage.github.io/async-storage/">AsyncStorage</a> to persist data. If you prefer not to use it, or if AsyncStorage is unavailable in your target environment, you can import or define a different storage class. However, it must follow a subset (see: <ahref="index.d.ts"><code>MixpanelAsyncStorage</code></a>) of the same interface as <ahref="https://react-native-async-storage.github.io/async-storage/">AsyncStorage</a> The following example demonstrates how to use a custom storage solution:</p>
148
+
<preclass="prettyprint source"><code>// Optional: if you do not want to use the default AsyncStorage
0 commit comments