Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mixpanel-react-native

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel-react-native - npm Package Versions

13
6

2.4.1

Diff

Changelog

Source

v2.4.1 (2024-03-01)

Fixes

  • Fix mp_lib(Mixpanel Library) not being set as react-native

zihe.jia
published 3.0.0-beta.1 •

Changelog

Source

v3.0.0-beta.1 (2024-02-29)

Expo and React Native Web support

This version(PR #223) introduces support for Expo, React Native Web, and any platform using React Native that does not support iOS and Android. To activate this, initialize Mixpanel with an additional parameter useNative set to false, which will enable JavaScript mode. Currently in beta, we plan to iterate on this to address any issues and add more features. We welcome your feedback.

 const trackAutomaticEvents = false;
 const useNative = false;
 const mixpanel = new Mixpanel(
    "YOUR_MIXPANEL_TOKEN",
    trackAutomaticEvents,
    useNative
  );
 mixpanel.init();

To try the Expo sample app, navigate to Samples/MixpanelExpo, run npm install, and then execute npm run ios or npm run android

Known limitations and differences compared to the native mode (iOS/Android):

  • Automatic Events are currently not supported in this mode. Setting 'trackAutomaticEvents' to 'true' will have no effect.
  • Certain Mixpanel Properties are unavailable in Javascript mode, including detailed information about the device and screen.
  • The default flush interval is set to 10 seconds. The data will not flush automatically when the app moves to the background. We recommend flushing more frequently for key events.

zihe.jia
published 2.4.0 •

Changelog

Source

v2.4.0 (2023-12-02)

Enhancements

  • add api: setFlushBatchSize #219
  • RN 73 support for Android with AGP 8 required #215

zihe.jia
published 2.3.1 •

Changelog

Source

v2.3.1 (2023-06-20)

Fixes

  • fix typo in the identify function resolve #205

zihe.jia
published 2.3.0 •

Changelog

Source

v2.3.0 (2023-06-16)

Enhancements

  • Returning Promise for the identify() to avoid race condition #200

Fixes

  • Fix null reference used for synchronization (monitor-enter) #199
  • fix initialize was called with 4 arguments but expects 5 arguments #198
  • safer handling of super properties #197
  • Android resource linking failure fix #187

Closed issues:

  • Support new React Native new architecture (TurboModules/Fabric) #145
  • Feature Request: Built in getInstance() or similar instead of custom tooling #139
  • [Feature Request] Add support for Expo Config Plugins #69

jaredcmixpanel
published 2.2.5 •

Changelog

Source

v2.2.5 (2023-04-29)

Fixes

  • Remove semaphores, copy properties, use .merging, don't includeLibInfo in init #191

jaredcmixpanel
published 2.2.4 •

Changelog

Source

v2.2.4 (2023-04-25)

Fixes

  • use semaphore to prevent concurrent access to properties object #188

jaredcmixpanel
published 2.2.3 •

Changelog

Source

v2.2.3 (2023-04-17)

Fixes

  • Make 'groups' argument optional in trackWithGroups #169

zihe.jia
published 2.2.1 •

Changelog

Source

v2.2.1 (2023-03-23)

Enhancements

  • bump iOS version to 4.1.0 #180
zihe.jia
published 2.2.0 •

Changelog

Source

v2.2.0 (2023-03-06)

NOTE:

  • From this version we will prefix randomly generated device-specific distinct_ids with "$device:". The prefix is applied the next time a new random ID is generated, any IDs generated by previous SDK versions and persisted on the device will continue to be used as-is until reset is called to generate a new ID. This does not change the value sent for the $device_id property, which will continue to be the randomly-generated ID without a prefix. Mixpanel's $identify endpoint has been updated to accept UUIDs with this prefix to coordinate with this change.

Enhancements

  • bump ios to 4.0.5 and android to 7.3.0 #176

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc