This commit is contained in:
Ulises M 2024-11-22 16:49:59 -06:00
parent 87cafabddc
commit 3738174283
No known key found for this signature in database
GPG Key ID: 5A15782EB758534E

View File

@ -13,9 +13,9 @@
(defn- mention-item (defn- mention-item
[[user-key user]] [[user-key user]]
(with-meta (with-meta
[contact-list-item/contact-list-item {:on-press #(rf/dispatch [:chat.ui/select-mention user])} [contact-list-item/contact-list-item {:on-press #(rf/dispatch [:chat.ui/select-mention user])}
user] user]
{:key user-key})) {:key user-key}))
(defn view (defn view
[layout-height] [layout-height]
@ -39,6 +39,7 @@
(reanimated/animate opacity (if suggestions? 1 0))) (reanimated/animate opacity (if suggestions? 1 0)))
[suggestions]) [suggestions])
[reanimated/view {:style (style/container opacity top theme)} [reanimated/view {:style (style/container opacity top theme)}
[rn/scroll-view {:accessibility-label :mentions-list [rn/scroll-view
:keyboard-should-persist-taps :always} {:accessibility-label :mentions-list
:keyboard-should-persist-taps :always}
(map mention-item suggestions-state)]])) (map mention-item suggestions-state)]]))