SHIPPED

Official React wrapper using context API?

  • 13 February 2019
  • 6 replies
  • 409 views

Badge

The only ones I found are non official so long time support is not guaranteed!


cherise 1 month ago

We are excited to announce that we have shipped the React Native SDK!

Please use the following resources to use the SDK, and post in Sending data to Mixpanel if you have any questions!

Developer guide: https://developer.mixpanel.com/docs/react-native

Github link: https://github.com/mixpanel/mixpanel-react-native

Sample App: https://github.com/mixpanel/mixpanel-react-native/tree/master/MixpanelDemo

View original

6 replies

Badge

https://github.com/neciu/react-mixpanel is a pretty simple wrapper over mixpanel-browser and so are most other wrappers so not a significant risk of lack of support (if that was the case, you could easily write your own or contribute to/fork the project)


Userlevel 6
Badge +3

Hi @pascamel -

The good news is that this is something that we are currently working on. However, I was unable to submit a product gap on your behalf because you signed up for Community with a different email address than your Mixpanel Account. If you update your email address I would be happy to share your input with our Product and Engineering Team! Just drop us a comment to let us know when you make the change.

@randal - If you haven't already, please submit a separate Idea if you feel that a Mixpanel React Native SDK would help you. From there we can submit a custom Product Gap on your behalf — we love hearing all of the details about your specific use-cases.

In the meantime, these are our recommendations for opensource versions until ours is ready:

- https://github.com/davodesign84/react-native-mixpanel

- https://github.com/lorenc-tomasz/react-native-mixpanel


Userlevel 6
Badge +3

We are excited to be opening the closed beta and supporting it within this group: https://community.mixpanel.com/groups/react-native-closed-beta-40

 

Please join the group to get access to all documentation and ask additional questions! 

A handy library has recently appeared for this:https://www.npmjs.com/package/react-mixpanel-provider-component
Userlevel 6
Badge +3

We are excited to announce that we have shipped the React Native SDK!

Please use the following resources to use the SDK, and post in Sending data to Mixpanel if you have any questions!

Developer guide: https://developer.mixpanel.com/docs/react-native

Github link: https://github.com/mixpanel/mixpanel-react-native

Sample App: https://github.com/mixpanel/mixpanel-react-native/tree/master/MixpanelDemo

Badge

The pinned response here refers to a react-native sdk. My understanding was that the question related to React, not React native. I found this article helpful in terms of creating your own react wrapper https://medium.com/@andrewoons/setting-up-mixpanel-in-react-3e4c5b8c2a36

There are a few premade wrappers on npm but they don’t look maintained. Given how simple it is, makes more sense to roll your own wrapper.

Reply


Mixpanel