1 | import { NativeModules } from 'react-native';
|
2 | const { ExponentAmplitude } = NativeModules;
|
3 | export default {
|
4 | initialize(apiKey) {
|
5 | return ExponentAmplitude.initialize(apiKey);
|
6 | },
|
7 | setUserId(userId) {
|
8 | return ExponentAmplitude.setUserId(userId);
|
9 | },
|
10 | setUserProperties(userProperties) {
|
11 | return ExponentAmplitude.setUserProperties(userProperties);
|
12 | },
|
13 | clearUserProperties() {
|
14 | return ExponentAmplitude.clearUserProperties();
|
15 | },
|
16 | logEvent(eventName) {
|
17 | return ExponentAmplitude.logEvent(eventName);
|
18 | },
|
19 | logEventWithProperties(eventName, properties) {
|
20 | return ExponentAmplitude.logEventWithProperties(eventName, properties);
|
21 | },
|
22 | setGroup(groupType, groupNames) {
|
23 | return ExponentAmplitude.setGroup(groupType, groupNames);
|
24 | },
|
25 | };
|
26 |
|
\ | No newline at end of file |