Use stable handler for chat renderer
This commit is contained in:
parent
6e5214da72
commit
d5fa11a918
|
@ -282,8 +282,9 @@
|
|||
|
||||
(defn chat-list-item
|
||||
[{:keys [chat-id chat-type]
|
||||
:as item} theme]
|
||||
(let [customization-color (rf/sub [:profile/customization-color])]
|
||||
:as item}]
|
||||
(let [customization-color (rf/sub [:profile/customization-color])
|
||||
theme (quo.theme/use-theme)]
|
||||
[rn/touchable-highlight
|
||||
{:style style/container
|
||||
:on-press (open-chat chat-id)
|
||||
|
|
|
@ -76,8 +76,7 @@
|
|||
:on-end-reached on-end-reached
|
||||
:keyboard-should-persist-taps :always
|
||||
:data items
|
||||
:render-fn (fn [item]
|
||||
(chat-list-item/chat-list-item item theme))
|
||||
:render-fn chat-list-item/chat-list-item
|
||||
:scroll-event-throttle 8
|
||||
:content-container-style {:padding-bottom
|
||||
shell.constants/floating-shell-button-height
|
||||
|
|
Loading…
Reference in New Issue