diff --git a/index.js b/index.js index a78998e..a21ba04 100644 --- a/index.js +++ b/index.js @@ -1,21 +1,19 @@ /** * @format */ import { AppRegistry } from 'react-native'; import App from './app/app'; import { name as appName } from './app.json'; import bgMessaging from './bgMessaging'; import bgCalling from './bgCalling'; import { firebase } from '@react-native-firebase/messaging'; console.disableYellowBox = true; // New background task registration firebase.messaging().setBackgroundMessageHandler(bgMessaging); AppRegistry.registerComponent(appName, () => App); - AppRegistry.registerHeadlessTask('RNCallKeepBackgroundMessage', () => bgCalling); -AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging);