package for traccar
npm install react-native-traccar
import {
startTrackingService,
stopTrackingService,
setupTrackingService
} from 'react-native-traccar';
interface SetupOptions {
url: string
deviceId: string
distanceFilter?: number // set 0 to disable, defaults to 0
locationUpdatesIntervalInSeconds?: number // defaults to 600s (10 minutes)
}
setupTrackingService(options: SetupOptions): void
startTrackingService(): void
// ...
stopTrackingService(): void
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library