Skip to content

Commit

Permalink
fix composer misses shadow and swipe rectangle element (#19805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull authored Apr 26, 2024
1 parent 8fc6f47 commit 2ec6a3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/status_im/contexts/chat/messenger/composer/effects.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/contexts/chat/messenger/composer/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ec6a3e

Please sign in to comment.