input helper animation with native driver
This commit is contained in:
parent
532664ab84
commit
4f6086ed1d
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue