mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
fix issue with circle not animating when is equal to 0
This commit is contained in:
parent
12e0b66098
commit
1a37f2bb05
@ -35,7 +35,7 @@ export default class AnimatedCircularProgress extends React.PureComponent {
|
||||
}
|
||||
|
||||
animate(toVal, dur, ease) {
|
||||
const toValue = toVal || this.props.fill;
|
||||
const toValue = toVal >= 0 ? toVal : this.props.fill;
|
||||
const duration = dur || this.props.duration;
|
||||
const easing = ease || this.props.easing;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user