parent
6037fe80c4
commit
d4be3a6976
|
@ -106,10 +106,7 @@
|
||||||
(fn []
|
(fn []
|
||||||
(empty-effect animations subscriptions))
|
(empty-effect animations subscriptions))
|
||||||
[input-text images link-previews? reply])
|
[input-text images link-previews? reply])
|
||||||
(rn/use-effect
|
(rn/use-mount #(reenter-screen-effect state dimensions subscriptions animations)))
|
||||||
(fn []
|
|
||||||
(reenter-screen-effect state dimensions subscriptions animations))
|
|
||||||
[max-height subscriptions]))
|
|
||||||
|
|
||||||
(defn use-edit
|
(defn use-edit
|
||||||
[{:keys [input-ref]}
|
[{:keys [input-ref]}
|
||||||
|
|
|
@ -32,8 +32,10 @@
|
||||||
(reanimated/set-shared-value saved-height max-height)
|
(reanimated/set-shared-value saved-height max-height)
|
||||||
(reanimated/set-shared-value background-y 0)
|
(reanimated/set-shared-value background-y 0)
|
||||||
(reanimated/animate opacity 1)
|
(reanimated/animate opacity 1)
|
||||||
(reset! maximized? true)
|
(js/setTimeout (fn []
|
||||||
(rf/dispatch [:chat.ui/set-input-maximized true]))
|
(reset! maximized? true)
|
||||||
|
(rf/dispatch [:chat.ui/set-input-maximized true]))
|
||||||
|
300))
|
||||||
|
|
||||||
(defn minimize
|
(defn minimize
|
||||||
[{:keys [input-ref emoji-kb-extra-height saved-emoji-kb-extra-height]}
|
[{:keys [input-ref emoji-kb-extra-height saved-emoji-kb-extra-height]}
|
||||||
|
|
Loading…
Reference in New Issue