[react-native-mixpanel] refactoring

This commit is contained in:
Andrew Makarov
2017-11-17 23:38:17 +03:00
parent 628b7ee0eb
commit 36cd1f471e
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for react-native-mixpanel 0.1
// Project: https://github.com/davodesign84/react-native-mixpanel#readme
// Definitions by: My Self <https://github.com/me>
// Definitions by: Andrew Makarov <https://github.com/r3nya>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

View File

@@ -1,4 +1,4 @@
import Mixpanel = require('react-native-mixpanel');
import * as Mixpanel from 'react-native-mixpanel';
Mixpanel.sharedInstanceWithToken('1234567890');
Mixpanel.track('Event name');