input helper animation with native driver
This commit is contained in:
parent
532664ab84
commit
4f6086ed1d
|
@ -104,8 +104,9 @@
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(let [to-value (if @placeholder 1 0)]
|
(let [to-value (if @placeholder 1 0)]
|
||||||
(animation/start
|
(animation/start
|
||||||
(animation/timing opacity-value {:toValue to-value
|
(animation/timing opacity-value {:toValue to-value
|
||||||
:duration 300})))))
|
:duration 300
|
||||||
|
:useNativeDriver true})))))
|
||||||
|
|
||||||
(defview input-helper [{:keys [width]}]
|
(defview input-helper [{:keys [width]}]
|
||||||
(letsubs [placeholder [:chats/input-placeholder]
|
(letsubs [placeholder [:chats/input-placeholder]
|
||||||
|
|
Loading…
Reference in New Issue