-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
21 lines (20 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import 'react-native-gesture-handler'
import 'expo-asset'
import {AppRegistry} from 'react-native'
import Portalnesia from '@portalnesia/react-native-core'
import App from './App';
import Auth from './activity/auth/AuthActivity'
import Share from './activity/share/ShareActivity'
import SyncAdapter from './services/SyncService'
import handleFCM from './services/FCMservices'
import notificationService from './services/NotificationService'
import TrackPlayerService from './services/MusicPlayer'
import messaging from '@react-native-firebase/messaging';
import TrackPlayer from 'react-native-track-player'
AppRegistry.registerComponent('main', () => App);
AppRegistry.registerComponent('auth', () => Auth);
AppRegistry.registerComponent('share', () => Share);
messaging().setBackgroundMessageHandler(handleFCM);
TrackPlayer.registerPlaybackService(()=>TrackPlayerService)
AppRegistry.registerHeadlessTask("PN_SYNC_TASK",()=>SyncAdapter);
AppRegistry.registerHeadlessTask(Portalnesia.Notification.HEADLESS_TASK,()=>notificationService);