Expose easing and rename performLinearAnimation to performTimingAnimation

This commit is contained in:
Alexis Mangin 2018-03-13 14:20:28 +00:00
parent 379570853f
commit d91325a6f4

View File

@ -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);
}