Skip to content

Commit

Permalink
Fix: useNativeDriver cause props undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
aboveyunhai committed Jan 27, 2020
1 parent c6d37e1 commit 8f36254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AnimatedCircularProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class AnimatedCircularProgress extends React.PureComponent {
if (!this.props.tintColorSecondary) {
return this.props.tintColor
}

const tintAnimation = this.state.fillAnimation.interpolate({
inputRange: [0, 100],
outputRange: [this.props.tintColor, this.props.tintColorSecondary]
Expand Down Expand Up @@ -81,5 +81,5 @@ AnimatedCircularProgress.defaultProps = {
duration: 500,
easing: Easing.out(Easing.ease),
prefill: 0,
useNativeDriver: true,
useNativeDriver: false,
};

0 comments on commit 8f36254

Please sign in to comment.