Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Timer decrease with in seconds (very fastly) #117

Open
yasir-syed opened this issue Dec 9, 2022 · 5 comments
Open

Android Timer decrease with in seconds (very fastly) #117

yasir-syed opened this issue Dec 9, 2022 · 5 comments

Comments

@yasir-syed
Copy link

yasir-syed commented Dec 9, 2022

I have upgraded my environment
"react": "18.1.0",
"react-native": "0.70.4",
Now in Android release apk timer decreases within seconds. Its does not happen always but mostly.
So I start a timer for 10 minutes and it decreases to 0 in less than 2 minutes.
It is working fine on iOS devices.

@yasir-syed yasir-syed changed the title Android Timer decrease with seconds Android Timer decrease with in seconds (very fastly) Dec 9, 2022
@yasir-syed
Copy link
Author

@sourabhCCSD
Copy link

Same is happeing with me

@c-info
Copy link

c-info commented Dec 30, 2022

similar issue sometimes the timer is stuck also.

@arslanrazzaq
Copy link

@yasir-syed @c-info @sourabhCCSD any update about this issue.

@yasir-syed
Copy link
Author

yasir-syed commented Jan 3, 2023

nops.
No update yet, i m resetting it right after 2 seconds to catch it back, normally it works fine after one reset.
but sometimes a 10 minute countdown happens with in 8-9 minutes, so i also reset it after every 30 seconds as well.
there may be a better way, but that's what I have done so far
sample for resetting

     this.setState({
        remainingSeconds: 0,
      });
      setTimeout(() => {
        this.setState({
          remainingSeconds: /*this.what_ever_get_Remaining_Seconds_logic_is()*/
        });
      }, 100);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants