2022-11-30 10:13:33 +05:30
|
|
|
/**
|
|
|
|
|
* @format
|
|
|
|
|
*/
|
|
|
|
|
|
2023-04-20 13:07:30 +05:30
|
|
|
import { AppRegistry } from 'react-native';
|
2022-11-30 10:13:33 +05:30
|
|
|
import App from './App';
|
2023-04-20 13:07:30 +05:30
|
|
|
import { name as appName } from './app.json';
|
2022-12-01 11:21:46 +05:30
|
|
|
import database from '@react-native-firebase/database';
|
2023-02-28 12:02:13 +05:30
|
|
|
import { LogBox } from 'react-native';
|
2023-04-20 13:07:30 +05:30
|
|
|
import ReactNativeForegroundService from '@supersami/rn-foreground-service';
|
2023-04-18 01:27:28 +05:30
|
|
|
import CosmosForegroundService from './src/services/foregroundServices/foreground.service';
|
2023-02-28 12:02:13 +05:30
|
|
|
|
|
|
|
|
if (__DEV__) {
|
2023-04-20 13:07:30 +05:30
|
|
|
LogBox.ignoreAllLogs();
|
2023-02-28 12:02:13 +05:30
|
|
|
}
|
2022-12-01 11:21:46 +05:30
|
|
|
|
|
|
|
|
database().setPersistenceEnabled(true);
|
2023-04-18 01:27:28 +05:30
|
|
|
ReactNativeForegroundService.register();
|
|
|
|
|
|
|
|
|
|
// Register the headless task
|
|
|
|
|
AppRegistry.registerHeadlessTask('CosmosForegroundService', () => CosmosForegroundService);
|
2022-11-30 10:13:33 +05:30
|
|
|
|
|
|
|
|
AppRegistry.registerComponent(appName, () => App);
|