victorlpgazolli / react-native-traccar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-traccar

package for traccar

Installation

npm install react-native-traccar

Usage

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

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

License:MIT License


Languages

Language:Kotlin 46.5%Language:Swift 33.1%Language:Java 6.3%Language:Ruby 6.0%Language:Python 2.8%Language:JavaScript 2.7%Language:Objective-C 1.0%Language:TypeScript 0.9%Language:Objective-C++ 0.7%Language:C 0.1%