input helper animation with native driver

This commit is contained in:
Roman Volosovskyi 2019-06-24 15:33:22 +03:00
parent 532664ab84
commit 4f6086ed1d
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,8 @@
(let [to-value (if @placeholder 1 0)]
(animation/start
(animation/timing opacity-value {:toValue to-value
:duration 300})))))
:duration 300
:useNativeDriver true})))))
(defview input-helper [{:keys [width]}]
(letsubs [placeholder [:chats/input-placeholder]