Faded first line of composer (#17489)

This commit is contained in:
Ibrahem Khalil 2023-10-07 11:12:10 +03:00 committed by GitHub
parent c6a9148e20
commit 4dc834b079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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