databag/app/mobile/index.js
2022-11-08 23:25:55 -08:00

13 lines
519 B
JavaScript

import 'react-native-gesture-handler';
import { registerRootComponent } from 'expo';
import App from './App';
import messaging from '@react-native-firebase/messaging';
messaging().registerDeviceForRemoteMessages();
messaging().setBackgroundMessageHandler(async remoteMessage => {});
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);