-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (19 loc) · 842 Bytes
/
index.js
File metadata and controls
23 lines (19 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {AppRegistry, YellowBox} from 'react-native'
import 'react-native-gesture-handler'
import App from './src/App'
require('./src/utils/setup')
import {handleFirebaseBackgroundMessage} from './src/utils/pushNotifications'
YellowBox.ignoreWarnings([
'Required dispatch_sync to load constants', // https://github.com/Microsoft/react-native-code-push/issues/632#issuecomment-265962068
'RCTBridge required dispatch_sync to load',
'Require cycle:',
])
// Uncomment for storybook
// export default from './storybook'
// Comment for storybook
AppRegistry.registerComponent('App', () => App)
// https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages#4)-(Optional)(Android-only)-Listen-for-FCM-messages-in-the-background
AppRegistry.registerHeadlessTask(
'RNFirebaseBackgroundMessage',
() => handleFirebaseBackgroundMessage
)