mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
Expose easing and rename performLinearAnimation to performTimingAnimation
This commit is contained in:
parent
379570853f
commit
d91325a6f4
@ -42,12 +42,12 @@ export default class AnimatedCircularProgress extends React.Component {
|
||||
).start(onAnimationComplete);
|
||||
}
|
||||
|
||||
performLinearAnimation(toValue, duration) {
|
||||
performTimingAnimation(toValue, duration, easing = Easing.linear) {
|
||||
const { onLinearAnimationComplete } = this.props;
|
||||
|
||||
Animated.timing(this.state.chartFillAnimation, {
|
||||
toValue: toValue,
|
||||
easing: Easing.linear,
|
||||
easing: easing,
|
||||
duration: duration
|
||||
}).start(onLinearAnimationComplete);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user