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 4f051e4 + 7bdc864 commit ca9e75eCopy full SHA for ca9e75e
RNMixpanel/RNMixpanel.h
@@ -10,4 +10,6 @@
10
11
@interface RNMixpanel : NSObject<RCTBridgeModule>
12
13
++ (RNMixpanel *)sharedInstanceWithToken:(NSString *)apiToken launchOptions:(NSDictionary *)launchOptions;
14
+
15
@end
RNMixpanel/RNMixpanel.m
@@ -18,6 +18,11 @@ @implementation RNMixpanel
18
19
Mixpanel *mixpanel = nil;
20
21
+// Called by AppDelegate.m
22
++ (void)sharedInstanceWithToken:(NSString *)apiToken launchOptions:(NSDictionary *)launchOptions {
23
+ mixpanel = [Mixpanel sharedInstanceWithToken:apiToken launchOptions:launchOptions];
24
+}
25
26
// Expose this module to the React Native bridge
27
RCT_EXPORT_MODULE(RNMixpanel)
28
0 commit comments