You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.
I am still using this in react-native to force GPS geolocation updates.
componentDidMount() {
try {
// Use timer to force GPS update
// watchPosition updates too slowly, maybe every 10 seconds
this.setInterval(() => {
try {
if (this.state.killTimerMixin) { return; }
this.geoWatchStop();
this.geoWatchStart();
} catch (error) {
// Exception is thrown when database item this view was displaying is deleted in another view.
// ToDo: How to stop and shut down the TimerMixin ?
this.clearTimeout(); // < clearTimeout does NOT stop it
}
}, 3000);
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this project still useful.
it hasn't be updated in the last two year.
The text was updated successfully, but these errors were encountered: