React Native Mixpanel

screenshot of React Native Mixpanel
react-native

A React Native wrapper for Mixpanel tracking

Overview:

This is a React Native wrapper for the Mixpanel library, providing access to the Mixpanel SDK within a React Native environment. It offers additional functionalities such as notifications, operating system analysis, and surveys. The documentation includes both installation instructions and usage guidelines for both iOS and Android platforms.

Features:

  • React Native Wrapper: Utilizes the Mixpanel library within a React Native app.
  • Additional Functionalities: Provides access to notifications, operating system analysis, and surveys.
  • Easy Integration: Includes steps for installing the Mixpanel iOS SDK via Cocoapods or manually on iOS.
  • Compatibility: Works with React Native versions 0.60 and higher, supporting autolinking.

iOS:

  1. Run npm install react-native-mixpanel --save.
  2. Install Mixpanel iOS SDK via Cocoapods or manually.
  3. In Xcode, add RNMixpanel.xcodeproj from node_modules/react-native-mixpanel to your project.
  4. Add libRNMixpanel.a to your project's Build Phases ➜ Link Binary With Libraries.
  5. Update Header Search Paths in the Build Settings tab of RNMixpanel.xcodeproj.
  6. Run the project.

Android:

  1. Update android/settings.gradle and android/app/build.gradle as per the provided instructions.
  2. Register the module in either MainActivity.java or MainApplication.java.
  3. Follow the additional steps specified for Android versions 1.1.2 and above.

Summary:

This React Native wrapper for the Mixpanel library facilitates the integration of Mixpanel functionalities into your React Native projects. It offers additional features such as notifications and surveys, along with detailed installation guides for both iOS and Android platforms. The package supports React Native versions 0.60 and higher, making it a comprehensive solution for incorporating Mixpanel analytics into React Native applications.

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.