databag/app/mobile/index.js

16 lines
587 B
JavaScript
Raw Normal View History

2022-09-18 06:24:37 +00:00
import 'react-native-gesture-handler';
2022-09-06 21:38:53 +00:00
import { registerRootComponent } from 'expo';
2022-01-14 07:59:53 +00:00
import App from './App';
2022-11-07 18:29:19 +00:00
import messaging from '@react-native-firebase/messaging';
messaging().requestPermission().then(status => {})
messaging().registerDeviceForRemoteMessages().then(() => {});
2022-11-09 07:25:55 +00:00
messaging().setBackgroundMessageHandler(async remoteMessage => {});
2022-11-07 18:29:19 +00:00
2022-09-06 21:38:53 +00:00
// 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);