You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
conststorage=newMMKV({id: "mixpanel"});constMMKVStorageAdapter: MixpanelAsyncStorage={getItem: async(key)=>{returnstorage.getString(key)||null;},setItem: async(key,value)=>{storage.set(key,value);},removeItem: async(key)=>{storage.delete(key);},};consttrackAutomaticEvents=true;constuseNative=true;constmixpanel_api_key=process.env.EXPO_MIXPANEL_API_KEY??"";constmixpanel=newMixpanel(mixpanel_api_key,trackAutomaticEvents,useNative,MMKVStorageAdapter,);functionuseMixpanel(){useEffect(()=>{if(mixpanel_api_key){mixpanel.init();}else{Sentry.captureMessage("Mixpanel API key not found when starting the app");}},[mixpanel_api_key]);}
Also note that this will throw a TS error on the useNative field. Setting it to false doesn't throw an error but will still break the app.
The text was updated successfully, but these errors were encountered:
Adding another issue to highlight v3 being very broken as mentioned
here: #255
and here: #247
Running version
3.0.8
with MMVKHere is my setup:
Also note that this will throw a TS error on the
useNative
field. Setting it to false doesn't throw an error but will still break the app.The text was updated successfully, but these errors were encountered: