-
Notifications
You must be signed in to change notification settings - Fork 85
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
onUpdate to return the color that timer is showing. #195
Comments
Hey @dorianbucknor, the <CountdownCircleTimer
isPlaying
duration={7}
colors={['#004777', '#F7B801', '#A30000', '#A30000']}
colorsTime={[7, 5, 2, 0]}
>
{({ remainingTime, color }) => {
// take the color here
return remainingTime
}}
</CountdownCircleTimer> Just be carful if you save the color using |
I tried saving it to a state, did not end well. For onUpdate: For other component: One thing not related to this. I wanted to know how I could add a |
Perfect, I am happy that you found a solution. You can use |
Ok. Thanks.👍💯 |
I opened a feature request for this here #67 (comment) |
Is it possible to return the current color in onUpdate?
Use case: To use color of the timer (when it changes) as a glow/highlight around other components that are not children of the timer component.
The text was updated successfully, but these errors were encountered: