-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (21 loc) · 917 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (21 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* GeoTasker entry.
* Gesture handler import MUST be the very first line of the JS bundle.
*
* The geofenceTask import registers the expo-task-manager background task at
* module level — it must happen before AppRegistry so the task is available
* when the OS wakes the app to process a geofence event.
*/
import 'react-native-gesture-handler';
// Register the geofence background task before everything else.
import './src/services/geofence/geofenceTask';
import {AppRegistry} from 'react-native';
import notifee from '@notifee/react-native';
import App from './App';
import {name as appName} from './app.json';
import {handleNotifeeEvent} from './src/services/notifications/actionHandlers';
// Notifee background event handler (notification action button presses).
notifee.onBackgroundEvent(async event => {
await handleNotifeeEvent(event);
});
AppRegistry.registerComponent(appName, () => App);