INNER CODE UNIT · JavaScript
AnimatedCircularProgress
bartgryszko/react-native-circular-progress · src/AnimatedCircularProgress.js:7
export default class AnimatedCircularProgress extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
fillAnimation: new Animated.Value(props.prefill),
};
if (props.onFillChange) {
this.state.fillAnimation.addListener(({ value }) =>
props.onFillChange(value)
);
}
}
componentDidMount() {
this.animate();
}
componentDidUpdate(prevProps) {