Rubel hasan
Rubel hasan

Reputation: 2618

How I can add Mixpanel in react native expo project?

I am getting this below error

null is not an object (evaluating RNMixpanel.sharedInstancesWithtoken)

How I can setup Mixpanel in expo?

Upvotes: 1

Views: 3672

Answers (3)

TheGabbanator
TheGabbanator

Reputation: 11

Mixpanel-react-native supposedly supports Expo now in version 3.0.0

Edit: source

Upvotes: 0

Emerson Hsieh
Emerson Hsieh

Reputation: 233

I've been using the expo-mixpanel-analytics library by @benawad with an un-ejected Expo app and it works fine.

https://github.com/benawad/expo-mixpanel-analytics

Segment also has a React Native library and it has a Mixpanel integration.

https://segment.com/docs/connections/sources/catalog/libraries/mobile/react-native/

Upvotes: 3

King Julien
King Julien

Reputation: 11308

In expo, you can't use a module with native dependencies if it's not already supported by expo. I will have to first eject and then install mixpanel according to its docs.

Upvotes: 0

Related Questions