From e9466f18f13fe0f74d93296ac46cfdc4b0bf0d13 Mon Sep 17 00:00:00 2001 From: Mig-nan <78806571+Mig-nan@users.noreply.github.com> Date: Tue, 9 Feb 2021 15:48:03 +0100 Subject: [PATCH] Update index.js Adding "useNativeDriver: true" on Line 153 and 162 removes a Warning: "Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`" --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0de4aaf..1b78ac5 100644 --- a/index.js +++ b/index.js @@ -149,7 +149,8 @@ class DropdownMenu extends Component { Animated.timing(this.state.rotationAnims[index], { toValue: 0.5, duration: 300, - easing: Easing.linear + easing: Easing.linear, + useNativeDriver: true }).start(); } @@ -157,7 +158,8 @@ class DropdownMenu extends Component { Animated.timing(this.state.rotationAnims[index], { toValue: 0, duration: 300, - easing: Easing.linear + easing: Easing.linear, + useNativeDriver: true }).start(); }