talalmajali / react-native-countdown-component

React Native CountDown
MIT License
266 stars 233 forks source link

restart timer when countdown finishes? #41

Closed panda0603 closed 5 years ago

panda0603 commented 5 years ago

I wish to restart the timer automatically once the timer finishes.

I've looked at the closed issue #12 ,

but if you pass the same until value using onFinish prop, the countdown does not restart.

However on many occasions the until value needs to be the same.

How do we solve the issue?

talalmajali commented 5 years ago

@panda0603 please upgrade the component to 2.5.0 now you have id prop, if you send a different id to the component it will reset the timer, otherwise it will take all props and keeps the timer as it is.

memanoj commented 1 year ago

Try this https://github.com/talalmajali/react-native-countdown-component/issues/92#issuecomment-1467393540