Skip to content

Commit

Permalink
Set useNativeDriver to false explicitly in animation
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhu43 committed Jun 9, 2020
1 parent ad8c7e5 commit cf00967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ActionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const ActionButton = props => {
if (active) return reset(animate);

if (animate) {
Animated.spring(anim.current, { toValue: 1 }).start();
Animated.spring(anim.current, { toValue: 1, useNativeDriver: false }).start();
} else {
anim.current.setValue(1);
}
Expand All @@ -266,7 +266,7 @@ const ActionButton = props => {
if (props.onReset) props.onReset();

if (animate) {
Animated.spring(anim.current, { toValue: 0 }).start();
Animated.spring(anim.current, { toValue: 0, useNativeDriver: false }).start();
} else {
anim.current.setValue(0);
}
Expand Down

0 comments on commit cf00967

Please sign in to comment.