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

updateInterval not working for 1 second #226

Closed avijit-ordering closed 1 year ago

avijit-ordering commented 1 year ago

Hello,

By default updateInterval works for 2 seconds. If we set updateInterval:1 then it's not working but if we set updateInterval:5 then it's working. I want the interval for 1 sec instead of 2 seconds.

I have used "react-native-countdown-circle-timer": "^3.1.0", Can you please look into this?

Thanks.

avijit-ordering commented 1 year ago

This is my code: <CountdownCircleTimer isPlaying duration={10} colors={['#004777', '#F7B801', '#A30000', '#A30000']} colorsTime={[300, 200, 100, 0]} onComplete={onComplete} updateInterval={1}> {({ remainingTime }) => {remainingTime}}

vydimitrov commented 1 year ago

Hey, sure I can look at it. Can you prepare a small demo reproducing the issue?

avijit-ordering commented 1 year ago

@vydimitrov Please check this video screen https://d.pr/v/1jijii

vydimitrov commented 1 year ago

@avijit-ordering it seems to be working fine, you can take a look on it here - https://snack.expo.dev/@dimitrov/countdown-circle-timer

avijit-ordering commented 1 year ago

@vydimitrov With that code it's not working for me. It's still working with 2 seconds. If you have any succession then please share with me.

vydimitrov commented 1 year ago

Can you create a ExpoSnack reproducing your issue so I can take a look on what is the problem exactly?

avijit-ordering commented 1 year ago

@vydimitrov I have checked with other devices, and there it's working as normal. I am closing this ticket. Thanks.