Skip to content

Commit

Permalink
chore: add restart/reset timer demo in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasil Dimitrov committed Jul 27, 2020
1 parent 9040e11 commit 62b40b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -52,9 +52,9 @@ This component has a peer dependency on `react-native-svg`. Read the [full docum

Once the component is mounted `duration` and `initialRemainingTime` can not be changed to avoid any issues computing colors and progress. To set new values for any of the two props just pass a new `key` prop to `CountdownCircleTimer` component and the timer will start over with the new values provided.

### Restart timer at any given time
### Restart/Reset timer at any given time

Pass a `key` prop to `CountdownCircleTimer` and change the `key` when the timer should be restarted.
Pass a `key` prop to `CountdownCircleTimer` and change the `key` when the timer should be restarted. Check [this demo](https://codesandbox.io/s/tender-bogdan-qd35m) to find out one possible implementation.

### Repeat timer when countdown is completed

Expand Down

0 comments on commit 62b40b3

Please sign in to comment.