15 lines
389 B
JavaScript
15 lines
389 B
JavaScript
/**
|
|
* @format
|
|
*/
|
|
|
|
import { AppRegistry } from 'react-native';
|
|
import { name as appName } from './app.json';
|
|
import App from './app/App';
|
|
import messaging from '@react-native-firebase/messaging';
|
|
|
|
messaging().setBackgroundMessageHandler(async remoteMessage => {
|
|
console.log('Message handled in the background!', remoteMessage);
|
|
});
|
|
|
|
AppRegistry.registerComponent(appName, () => App);
|