react-native-circular-progress
react-native-circular-progress copied to clipboard
tintColorSecondary does not exist on type
tintColorSecondary is not implemented
same issue
It seems somehow it was remove from the file. Here is the commit with the tintColorSecondary prop in place Link.
Just add this function to AnimatedCircularProgress.js
file
animateColor() {
if (!this.props.tintColorSecondary) {
return this.props.tintColor
}
const tintAnimation = this.state.fillAnimation.interpolate({
inputRange: [0, 100],
outputRange: [this.props.tintColor, this.props.tintColorSecondary]
})
return tintAnimation
}
and then add animateColor
function to prop as the following <AnimatedProgress {...other} fill={this.state.fillAnimation} tintColor={this.animateColor()}/>
@pisacode would you be able to submit a pull request to fix the issue you are experiencing?