Null Reference used for synchronization
Opened this issue · 1 comments
ariniastari commented
This error has been come up on my development on android
implementation
const mixpanel = new MixpanelInstance(REACT_APP_MIXPANEL_ID);
mixpanel.initialize().then(() => {
mixpanel.track(currentScreen);
});
- "react-native-mixpanel": "^1.1.4", (tried to downgrade to "^1.1.4" still no luck)
- "react-native": "0.59.10"
- Android Build
lucasgerard commented
In my case this was caused by passing an undefined
token to Mixpanel.sharedInstanceWithToken
.
if you're using react-native-config
:
please check that you've followed this extra step, otherwise your Config values will be undefined
.