From fe3f6a3beac3812855c24faea5e297c8cf83ec8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lyas=20BAT?= Date: Fri, 14 Aug 2020 19:52:03 +0300 Subject: [PATCH 1/4] Update ActionButton.js --- ActionButton.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ActionButton.js b/ActionButton.js index ec1b9e3..7d4d087 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -148,8 +148,8 @@ const ActionButton = props => { onPressIn={props.onPressIn} onPressOut={props.onPressOut} > - - + + {_renderButtonIcon()} @@ -178,6 +178,7 @@ const ActionButton = props => { return ( { return ( Date: Fri, 14 Aug 2020 19:52:56 +0300 Subject: [PATCH 2/4] Update ActionButtonItem.js --- ActionButtonItem.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ActionButtonItem.js b/ActionButtonItem.js index 5e2bd2b..305dbf1 100644 --- a/ActionButtonItem.js +++ b/ActionButtonItem.js @@ -105,6 +105,7 @@ export default class ActionButtonItem extends Component { }; return ( From ceeb7a3d9079e36bdfb18848fdb099ece27a8c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lyas=20BAT?= Date: Fri, 14 Aug 2020 20:08:09 +0300 Subject: [PATCH 3/4] Update ActionButton.js --- ActionButton.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ActionButton.js b/ActionButton.js index 7d4d087..5981ea8 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -35,13 +35,13 @@ const ActionButton = props => { useEffect(() => { if (props.active) { - Animated.spring(anim.current, { toValue: 1 }).start(); + Animated.spring(anim.current, { toValue: 1,useNativeDriver:false }).start(); setActive(true); setResetToken(props.resetToken); } else { props.onReset && props.onReset(); - Animated.spring(anim.current, { toValue: 0 }).start(); + Animated.spring(anim.current, { toValue: 0,useNativeDriver:false }).start(); timeout.current = setTimeout(() => { setActive(false); setResetToken(props.resetToken); @@ -148,8 +148,8 @@ const ActionButton = props => { onPressIn={props.onPressIn} onPressOut={props.onPressOut} > - - + + {_renderButtonIcon()} @@ -178,7 +178,7 @@ const ActionButton = props => { return ( { 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); } @@ -267,7 +267,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); } @@ -282,7 +282,7 @@ const ActionButton = props => { return ( Date: Fri, 14 Aug 2020 20:08:36 +0300 Subject: [PATCH 4/4] Update ActionButtonItem.js --- ActionButtonItem.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ActionButtonItem.js b/ActionButtonItem.js index 305dbf1..5e2bd2b 100644 --- a/ActionButtonItem.js +++ b/ActionButtonItem.js @@ -105,7 +105,6 @@ export default class ActionButtonItem extends Component { }; return (