From 744a27ab8145f2c6c2e786479044e9bb132506b7 Mon Sep 17 00:00:00 2001 From: Luis Cifuentes Date: Mon, 30 Aug 2021 11:22:13 -0600 Subject: [PATCH] Fix: suppress warn ios onclick animated Animated: 'useNativeDriver' was not specified. this is a required option and must be explicitly set to 'true' of 'false' --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 833d6ba..e84ecfe 100644 --- a/index.js +++ b/index.js @@ -170,7 +170,8 @@ class TabBar extends Component { }), Animated.timing(this.animatedImageValues[index], { toValue: 1, - duration: 800 + duration: 800, + useNativeDriver: true }) ]).start(); }; @@ -197,7 +198,8 @@ class TabBar extends Component { Animated.timing(this.animatedImageValues[index], { toValue: 0, duration: 400, - delay: 350 + delay: 350, + useNativeDriver: false }) ]).start(); };