unioil-loyalty-rn-app/index.js

19 lines
490 B
JavaScript

/**
* @format
*/
import './polyfills.js';
import 'react-native-gesture-handler';
import 'react-native-reanimated';
import { AppRegistry } from 'react-native';
import App from './app/App';
import { name as appName } from './app.json';
import messaging from '@react-native-firebase/messaging';
messaging().setBackgroundMessageHandler(async remoteMessage => {
console.log("'Message handled in the background!'", remoteMessage);
});
AppRegistry.registerComponent(appName, () => App);