INNER CODE UNIT · JavaScript
noWatchers
Agontuk/react-native-geolocation-service · js/Geolocation.native.js:80
noWatchers = false; // still valid subscriptions
}
}
if (noWatchers) {
Geolocation.stopObserving();
}
},
stopObserving: () => {
if (updatesEnabled) {
RNFusedLocation.stopObserving();
updatesEnabled = false;
for (let ii = 0; ii < subscriptions.length; ii += 1) {
const sub = subscriptions[ii];
if (sub) {
// eslint-disable-next-line no-console