-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
30 lines (24 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
22
23
24
25
26
27
28
29
30
import notifee from '@notifee/react-native';
import messaging from '@react-native-firebase/messaging';
import { GoogleSignin } from '@react-native-google-signin/google-signin';
import 'moment/min/locales';
import { AppRegistry, LogBox } from 'react-native';
import TrackPlayer from 'react-native-track-player';
import { googleSigninConfig } from 'shared/config/google';
import 'shared/config/i18n';
import App from './src/app';
import { audioPlaybackService } from './src/entities/audio';
const onMessageReceived = async message => {
notifee.displayNotification(JSON.parse(message.data.notifee));
};
messaging().onMessage(onMessageReceived);
messaging().setBackgroundMessageHandler(onMessageReceived);
GoogleSignin.configure(googleSigninConfig);
LogBox.ignoreAllLogs(true);
LogBox.ignoreLogs([
'Non-serializable values were found in the navigation state',
'Sending',
'new NativeEventEmitter',
]);
TrackPlayer.registerPlaybackService(() => audioPlaybackService);
AppRegistry.registerComponent('DontSmoke', () => App);