React Native bridge to the Mixpanel libraries on both iOS and Android.
This is inspired by https://github.com/davodesign84/react-native-mixpanel but includes the Mixpanel iOS SDK so you don't need aditional installation steps.
Important: this was only tested with React Native
0.36.0. It's known it doesn't work with versions >=
0.40.0 due to changes on location of React Native headers.
Install the module:
npm install --save react-native-mixpanel-bridge
Link to your project:
react-native link react-native-mixpanel-bridge
;Mixpanel;// track somethingMixpanel;Mixpanel;Mixpanel;Mixpanel;Mixpanel;// Identify userMixpanel;Mixpanel;Mixpanel;// Timing eventsMixpanel; // startMixpanel; // end
See the Mixpanel reference (for iOS) for more information.
Thanks to @davodesign84 for the bridge code.