From cf0096728e025cdf0d1beb30fbad14138e06ab80 Mon Sep 17 00:00:00 2001 From: Prabhu Jayakumar Date: Sun, 19 Apr 2020 22:49:48 +0530 Subject: [PATCH] Set useNativeDriver to false explicitly in animation --- ActionButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ActionButton.js b/ActionButton.js index ec1b9e3..630060d 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -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); } @@ -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); }