about summary refs log tree commit diff
path: root/src/lib/bg-scheduler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/bg-scheduler.ts')
-rw-r--r--src/lib/bg-scheduler.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/bg-scheduler.ts b/src/lib/bg-scheduler.ts
deleted file mode 100644
index db3f2d7fd..000000000
--- a/src/lib/bg-scheduler.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import BackgroundFetch, {
-  BackgroundFetchStatus,
-} from 'react-native-background-fetch'
-
-export function configure(
-  handler: (taskId: string) => Promise<void>,
-  timeoutHandler: (taskId: string) => void,
-): Promise<BackgroundFetchStatus> {
-  return BackgroundFetch.configure(
-    {minimumFetchInterval: 15},
-    handler,
-    timeoutHandler,
-  )
-}
-
-export function finish(taskId: string) {
-  return BackgroundFetch.finish(taskId)
-}