Skip to content

Commit cf00967

Browse files
committed
Set useNativeDriver to false explicitly in animation
1 parent ad8c7e5 commit cf00967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ActionButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const ActionButton = props => {
254254
if (active) return reset(animate);
255255

256256
if (animate) {
257-
Animated.spring(anim.current, { toValue: 1 }).start();
257+
Animated.spring(anim.current, { toValue: 1, useNativeDriver: false }).start();
258258
} else {
259259
anim.current.setValue(1);
260260
}
@@ -266,7 +266,7 @@ const ActionButton = props => {
266266
if (props.onReset) props.onReset();
267267

268268
if (animate) {
269-
Animated.spring(anim.current, { toValue: 0 }).start();
269+
Animated.spring(anim.current, { toValue: 0, useNativeDriver: false }).start();
270270
} else {
271271
anim.current.setValue(0);
272272
}

0 commit comments

Comments
 (0)