Skip to content

Instantly share code, notes, and snippets.

View azolynsky's full-sized avatar

Alex Zolynsky azolynsky

  • Ann Arbor, MI
View GitHub Profile
@darryl-davidson
darryl-davidson / App.js
Created December 4, 2019 00:51
Example Expo 35 App that registers Background Fetch and Location Updates
import React, { useEffect } from "react";
import { StyleSheet, Text, View } from "react-native";
import * as BackgroundFetch from "expo-background-fetch";
import * as TaskManager from "expo-task-manager";
import * as Permissions from "expo-permissions";
import * as Location from "expo-location";
import { Notifications } from "expo";
import { Button } from "react-native";
const LOCATION_FETCH_TASK = "upload-job-task-with-location";