databag/app/mobile/index.js

16 lines
412 B
JavaScript
Raw Normal View History

2023-02-15 19:45:36 +00:00
/**
* @format
*/
import {AppRegistry} from 'react-native';
2022-01-14 07:59:53 +00:00
import App from './App';
2023-02-15 19:45:36 +00:00
import {name as appName} from './app.json';
2022-11-07 18:29:19 +00:00
import messaging from '@react-native-firebase/messaging';
2023-02-15 19:45:36 +00:00
messaging().registerDeviceForRemoteMessages().then(() => {}).catch((err) => {
console.log(err);
});
2022-11-09 07:25:55 +00:00
messaging().setBackgroundMessageHandler(async remoteMessage => {});
2022-11-07 18:29:19 +00:00
2023-02-15 19:45:36 +00:00
AppRegistry.registerComponent(appName, () => App);