How to use the react-native-geolocation-service.clearWatch function in react-native-geolocation-service

To help you get started, we’ve selected a few react-native-geolocation-service examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Agontuk / react-native-geolocation-service / example / App.js View on Github external
removeLocationUpdates = () => {
      if (this.watchId !== null) {
          Geolocation.clearWatch(this.watchId);
          this.setState({ updatesEnabled: false })
      }
  }