Open jkaufman opened 1 year ago
(timeout = 3000, ignoreError = false) => {
if (locationPermissionStatus !== LocationPermissionStatus.GRANTED) {
return;
}
Geolocation.getCurrentPosition(
(position) => {
console.log('position', position);
setCurrentLocation(position);
},
(error) => {
console.log('error', error);
if (ignoreError) {
return;
}
setLocationPermissionStatus(LocationPermissionStatus.SERVICE_DENIED);
},
{
enableHighAccuracy: true,
timeout,
maximumAge: 10000,
},
);
},
[locationPermissionStatus],
);
On the above comment given the follwing solution of the opened issue from your side, kindly update me when the isuue is closed.
This PR reflects the one-line change proposed in #266