Skip to content

Commit 4677a84

Browse files
authored
Merge pull request #253 from Nkgohil007/fix/fix_import_issue
fix: resolve import issue for MixpanelMain
2 parents 2f73630 + 1e058d4 commit 4677a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import {Platform, NativeModules} from "react-native";
44
import packageJson from "./package.json";
55
const {MixpanelReactNative} = NativeModules;
6+
import MixpanelMain from "mixpanel-react-native/javascript/mixpanel-main"
67

78
const DevicePlatform = {
89
Unknown: "Unknown",
@@ -55,7 +56,6 @@ export class Mixpanel {
5556
);
5657
}
5758

58-
const MixpanelMain = require("mixpanel-react-native/javascript/mixpanel-main");
5959
this.mixpanelImpl = new MixpanelMain(token, trackAutomaticEvents, storage);
6060
}
6161

0 commit comments

Comments
 (0)