diff --git a/docs/Mixpanel.html b/docs/Mixpanel.html index fd5ab488..f55201ac 100644 --- a/docs/Mixpanel.html +++ b/docs/Mixpanel.html @@ -4516,7 +4516,7 @@
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, useNative
, set to false(const mixpanel = new Mixpanel( "YOUR_MIXPANEL_TOKEN", trackAutomaticEvents, useNative );
). 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 v3.0.0-beta.1.
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.
+To enable this feature,
+
Step 1:
npm install @react-native-async-storage/async-storage
+
+When JavaScript mode is enabled, Mixpanel utilizes AsyncStorage 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: MixpanelAsyncStorage
) of the same interface as AsyncStorage The following example demonstrates how to use a custom storage solution:
// Optional: if you do not want to use the default AsyncStorage
+const MyAsyncStorage = require("@my-org/<library-path>/AsyncStorage");
+const trackAutomaticEvents = false;
+const useNative = false;
+const mixpanel = new Mixpanel('YOUR_TOKEN', trackAutomaticEvents, useNative, MyAsyncStorage);
+mixpanel.init();
+
+
Step 2:
+Initialize Mixpanel with an additional parameter, useNative
, set to false.
const trackAutomaticEvents = false;
+const useNative = false;
+const mixpanel = new Mixpanel(
+ "YOUR_MIXPANEL_TOKEN",
+ trackAutomaticEvents,
+ useNative
+ );
+
+This will activate JavaScript mode.
👋 👋 Tell us about the Mixpanel developer experience! https://www.mixpanel.com/devnps 👍 👎
I want to stop tracking an event/event property in Mixpanel. Is that possible?
@@ -180,7 +203,7 @@