From 7341dfe364066bf071953ffa13f51ded5913930f Mon Sep 17 00:00:00 2001 From: Rodolfo Gomez Sirimarco Date: Sat, 2 Jul 2022 11:00:35 -0500 Subject: [PATCH] Fix: useNativeDriver was not specified --- lib/ActionSheetCustom.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ActionSheetCustom.js b/lib/ActionSheetCustom.js index 7a0fc35..9ce9f8f 100644 --- a/lib/ActionSheetCustom.js +++ b/lib/ActionSheetCustom.js @@ -68,14 +68,16 @@ class ActionSheet extends React.Component { Animated.timing(this.state.sheetAnim, { toValue: 0, duration: 250, - easing: Easing.out(Easing.ease) + easing: Easing.out(Easing.ease), + useNativeDriver: true, }).start() } _hideSheet (callback) { Animated.timing(this.state.sheetAnim, { toValue: this.translateY, - duration: 200 + duration: 200, + useNativeDriver: true, }).start(callback) } @@ -181,7 +183,7 @@ class ActionSheet extends React.Component { const { visible, sheetAnim } = this.state return (