mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-25 16:25:58 +00:00
Return animation, new default easing
This commit is contained in:
parent
24dcc10798
commit
086d7cd928
@ -33,7 +33,7 @@ export default class AnimatedCircularProgress extends React.PureComponent {
|
||||
const duration = dur || this.props.duration;
|
||||
const easing = ease || this.props.easing;
|
||||
|
||||
Animated.timing(this.state.fillAnimation, {
|
||||
return Animated.timing(this.state.fillAnimation, {
|
||||
toValue,
|
||||
easing,
|
||||
duration,
|
||||
@ -62,6 +62,6 @@ AnimatedCircularProgress.propTypes = {
|
||||
|
||||
AnimatedCircularProgress.defaultProps = {
|
||||
duration: 500,
|
||||
easing: Easing.elastic(1),
|
||||
easing: Easing.out(Easing.ease),
|
||||
prefill: 0,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user