UNPKG

react-native-background-geolocation

Version:

The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence

19 lines (18 loc) 484 B
declare module "react-native-background-geolocation" { /** * The event-object provided to [[BackgroundGeolocation.onConnectivityChange]] * * @example * ```typescript * BackgroundGeolocation.onConnectivityChange(connectivityChangeEvent => { * console.log("[connectivitychange] ", connectivityChangeEvent.connected); * }); * ``` */ interface ConnectivityChangeEvent { /** * `true` when the device has access to a network connection. */ connected: boolean; } }