1

I am getting this below error

null is not an object (evaluating RNMixpanel.sharedInstancesWithtoken)

How I can setup Mixpanel in expo?

Rubel hasan
  • 2,522
  • 1
  • 13
  • 22

2 Answers2

3

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/

Emerson Hsieh
  • 234
  • 3
  • 21
0

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.

King Julien
  • 10,981
  • 24
  • 94
  • 132