react-timer-mixin icon indicating copy to clipboard operation
react-timer-mixin copied to clipboard

Is this project still useful ?

Open louisiscoding opened this issue 8 years ago • 2 comments

Is this project still useful. it hasn't be updated in the last two year.

louisiscoding avatar Nov 28 '17 09:11 louisiscoding

And doesn't seem to work in ES6

nuthinking avatar Feb 27 '18 14:02 nuthinking

What are react native timer alternatives?

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);

esutton avatar Mar 06 '18 16:03 esutton