We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f73630 + 1e058d4 commit 4677a84Copy full SHA for 4677a84
index.js
@@ -3,6 +3,7 @@
3
import {Platform, NativeModules} from "react-native";
4
import packageJson from "./package.json";
5
const {MixpanelReactNative} = NativeModules;
6
+import MixpanelMain from "mixpanel-react-native/javascript/mixpanel-main"
7
8
const DevicePlatform = {
9
Unknown: "Unknown",
@@ -55,7 +56,6 @@ export class Mixpanel {
55
56
);
57
}
58
- const MixpanelMain = require("mixpanel-react-native/javascript/mixpanel-main");
59
this.mixpanelImpl = new MixpanelMain(token, trackAutomaticEvents, storage);
60
61
0 commit comments