bartgryszko / bartgryszko/react-native-circular-progress

Timer as "fill" value

Open
#240 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
420
PR merge metrics
No merged PRs in 30d

Description

Hello all,
My issue is that, the progress seems finish before the actual time. There is a way to access the remaining time?

How I have configured the increase time:
`
setInterval(() => {
if (!this.state.stopTimer) {
this.setState({
currentTime: subSeconds(this.state.currentTime, 1),
});
}
}, 1000);
`
How I have configured the progress:
` this.animationComplete()}
backgroundColor="#3d5875"
ref={ref => (this._circularProgressRef = ref)}>
{fill => (

{format(this.state.currentTime, 'mm:ss')}

)}
`

Thanks in advance for your time 😄

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.