From 87da31dafd799a80384e8d9622b2c852329b1a4e Mon Sep 17 00:00:00 2001 From: Zihe Jia <36679208+zihejia@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:21:35 -0800 Subject: [PATCH] Update README.md include guide for the Expo and Web support --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bc49bee..fcf55263 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,13 @@ const SampleApp = () => { export default SampleApp; ``` -### For Expo support, please refer to this [issue](https://github.com/mixpanel/mixpanel-react-native/issues/82) +### Expo and React Native for Web support +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](https://github.com/mixpanel/mixpanel-react-native/releases/tag/v3.0.0-beta.1). + 👋 👋 Tell us about the Mixpanel developer experience! [https://www.mixpanel.com/devnps](https://www.mixpanel.com/devnps) 👍 👎