mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 19:49:16 +00:00
14 lines
535 B
JavaScript
14 lines
535 B
JavaScript
import 'react-native-gesture-handler';
|
|
import { registerRootComponent } from 'expo';
|
|
import App from './App';
|
|
import messaging from '@react-native-firebase/messaging';
|
|
|
|
messaging().registerDeviceForRemoteMessages().then(() => {});
|
|
|
|
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);
|