From 4f6086ed1dd8240cb34e50160270adc52dbeaa17 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 24 Jun 2019 15:33:22 +0300 Subject: [PATCH] input helper animation with native driver --- src/status_im/ui/screens/chat/input/input.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/ui/screens/chat/input/input.cljs b/src/status_im/ui/screens/chat/input/input.cljs index 3608befad0..28d18cd3ff 100644 --- a/src/status_im/ui/screens/chat/input/input.cljs +++ b/src/status_im/ui/screens/chat/input/input.cljs @@ -104,8 +104,9 @@ (fn [_] (let [to-value (if @placeholder 1 0)] (animation/start - (animation/timing opacity-value {:toValue to-value - :duration 300}))))) + (animation/timing opacity-value {:toValue to-value + :duration 300 + :useNativeDriver true}))))) (defview input-helper [{:keys [width]}] (letsubs [placeholder [:chats/input-placeholder]