forked from trustee-wallet/trusteeWallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (23 loc) · 896 Bytes
/
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
/**
* @format
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import './polyfills'
import 'react-native-gesture-handler'
import { AppRegistry } from 'react-native'
import './shim.js'
import './global'
import App from './App'
import { name as appName } from './app.json'
import PushNotification from 'react-native-push-notification'
import MarketingEvent from '@app/services/Marketing/MarketingEvent'
import AppNotificationPopup from '@app/services/AppNotification/AppNotificationPopup'
MarketingEvent.initMarketing(false, true)
PushNotification.configure({
// (required) Called when a remote is received or opened, or local notification is opened
onNotification: function(notification) {
AppNotificationPopup.onOpened(notification)
}
})
// @deprecated BackgroundFetch.registerHeadlessTask(BackgroundDaemon.taskToRegister)
AppRegistry.registerComponent(appName, () => App)