Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { PushNotificationIOS } from 'react-native'
- import Mixpanel from 'react-native-mixpanel-bridge'
- componentDidMount() {
- Mixpanel.sharedInstanceWithToken("***PROJECT TOKEN***");
- PushNotificationIOS.requestPermissions();
- PushNotificationIOS.addEventListener('register', (token) => {
- Mixpanel.addPushDeviceToken(token);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement