vydimitrov / react-countdown-circle-timer

Lightweight React/React Native countdown timer component with color and progress animation based on SVG
MIT License
692 stars 87 forks source link

Duration 60 takes 86 seconds on Android device #165

Closed prechapl closed 3 years ago

prechapl commented 3 years ago

I'm working on RN app where the timer is much slower on Android than on IOS.

When setting duration 60, the timer actually takes 86 seconds on Android device

When setting duration 60, the timer actually takes 67 seconds on IOS device

Any advice on how to optimize this would be greatly appreciated!

Thanks for creating this package.

Thanks, Preston

vydimitrov commented 3 years ago

Hey, how do you test it? On real device or simulator?

prechapl commented 3 years ago

I tested on Android device, Ios device, and Ios simulator.

vydimitrov commented 3 years ago

It seems to be working fine in the Snack - https://snack.expo.dev/@dimitrov/countdown-circle-timer?platform=ios It may be related to your code that slows down the runtime , thus the timer is affected. I'd suggest creating a new App and adding just the timer to see what would be the result.

vydimitrov commented 3 years ago

Hey @prechapl, any luck on reproducing this one on different devices?

vydimitrov commented 3 years ago

Closing this issue due to inactivity.