fix composer misses shadow and swipe rectangle element (#19805)

This commit is contained in:
Parvesh Monu 2024-04-26 20:02:08 +05:30 committed by GitHub
parent 8fc6f4776b
commit 2ec6a3ed06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -90,7 +90,7 @@
(defn initialize
[props state animations {:keys [max-height] :as dimensions}
{:keys [chat-input audio] :as subscriptions}]
{:keys [chat-input audio input-text images link-previews? reply] :as subscriptions}]
(rn/use-effect
(fn []
(maximized-effect state animations dimensions chat-input)
@ -99,10 +99,13 @@
(background-effect state animations dimensions chat-input)
(link-preview-effect state)
(audio-effect state audio)
(empty-effect animations subscriptions)
(kb/add-kb-listeners props state animations dimensions)
#(component-will-unmount props))
[max-height])
(rn/use-effect
(fn []
(empty-effect animations subscriptions))
[input-text images link-previews? reply])
(rn/use-effect
(fn []
(reenter-screen-effect state dimensions subscriptions animations))

View File

@ -95,7 +95,7 @@
(drag-gesture/drag-gesture props state animations dimensions keyboard-shown)}
[reanimated/view
{:style (style/sheet-container insets animations theme)}
[sub-view/bar]
[sub-view/bar theme]
[:<>
[reply/view state (:input-ref props)]
[edit/view