Reputation: 2618
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
Reputation: 11
Mixpanel-react-native supposedly supports Expo now in version 3.0.0
Edit: source
Upvotes: 0
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
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