24 lines
700 B
JavaScript
24 lines
700 B
JavaScript
/**
|
|
* @format
|
|
*/
|
|
|
|
import { AppRegistry } from 'react-native';
|
|
import App from './App';
|
|
import { name as appName } from './app.json';
|
|
import database from '@react-native-firebase/database';
|
|
import { LogBox } from 'react-native';
|
|
import ReactNativeForegroundService from '@supersami/rn-foreground-service';
|
|
import CosmosForegroundService from './src/services/foregroundServices/foreground.service';
|
|
|
|
if (__DEV__) {
|
|
LogBox.ignoreAllLogs();
|
|
}
|
|
|
|
database().setPersistenceEnabled(true);
|
|
ReactNativeForegroundService.register();
|
|
|
|
// Register the headless task
|
|
AppRegistry.registerHeadlessTask('CosmosForegroundService', () => CosmosForegroundService);
|
|
|
|
AppRegistry.registerComponent(appName, () => App);
|