From 1639013d904ca295718a1483892824484404730c Mon Sep 17 00:00:00 2001 From: Shivam Kumar Date: Wed, 20 Apr 2022 17:35:31 +0530 Subject: [PATCH] Added mandate `useNativeDriver` Latest React requires `useNativeDriver` prop for any animations. Absence of this prop throws warning which can be an error in future versions. --- lib/ActionSheetCustom.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ActionSheetCustom.js b/lib/ActionSheetCustom.js index 7a0fc35..9251aad 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) }