Faded first line of composer (#17489)
This commit is contained in:
parent
c6a9148e20
commit
4dc834b079
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
(defn focus
|
(defn focus
|
||||||
[{:keys [input-ref] :as props}
|
[{:keys [input-ref] :as props}
|
||||||
{:keys [text-value focused? lock-selection? saved-cursor-position gradient-z-index]}
|
{:keys [text-value focused? lock-selection? saved-cursor-position]}
|
||||||
{:keys [height saved-height last-height opacity background-y gradient-opacity container-opacity]
|
{:keys [height saved-height last-height opacity background-y container-opacity]
|
||||||
:as animations}
|
:as animations}
|
||||||
{:keys [max-height] :as dimensions}]
|
{:keys [max-height] :as dimensions}]
|
||||||
(reset! focused? true)
|
(reset! focused? true)
|
||||||
|
@ -27,9 +27,6 @@
|
||||||
(when (> (reanimated/get-shared-value last-height) (* constants/background-threshold max-height))
|
(when (> (reanimated/get-shared-value last-height) (* constants/background-threshold max-height))
|
||||||
(reanimated/animate opacity 1)
|
(reanimated/animate opacity 1)
|
||||||
(reanimated/set-shared-value background-y 0))
|
(reanimated/set-shared-value background-y 0))
|
||||||
(when (= @gradient-z-index -1)
|
|
||||||
(reanimated/animate gradient-opacity 1)
|
|
||||||
(reset! gradient-z-index 1))
|
|
||||||
(js/setTimeout #(reset! lock-selection? false) 300)
|
(js/setTimeout #(reset! lock-selection? false) 300)
|
||||||
(when (and (not-empty @text-value) @input-ref)
|
(when (and (not-empty @text-value) @input-ref)
|
||||||
(.setNativeProps ^js @input-ref
|
(.setNativeProps ^js @input-ref
|
||||||
|
|
Loading…
Reference in New Issue