react-native-firebase/tests/index.js

11 lines
354 B
JavaScript
Raw Normal View History

2017-04-23 19:22:19 +00:00
import { AppRegistry } from 'react-native';
import bootstrap from './src/main';
import bgMessaging from './src/bgMessaging';
2017-04-23 19:22:19 +00:00
AppRegistry.registerComponent('ReactNativeFirebaseDemo', () => bootstrap);
// Task registered to handle background data-only FCM messages
AppRegistry.registerHeadlessTask(
'RNFirebaseBackgroundMessage',
() => bgMessaging
);