mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 18:54:52 +00:00
[#11704] Android 11 flatlist performance degradation
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
35f152c479
commit
32393c9091
@ -157,6 +157,7 @@
|
|||||||
(debounce/debounce-and-dispatch [:chat.ui/message-visibility-changed e] 5000))
|
(debounce/debounce-and-dispatch [:chat.ui/message-visibility-changed e] 5000))
|
||||||
|
|
||||||
(defn render-fn [{:keys [outgoing type] :as message} idx _ {:keys [group-chat public? current-public-key space-keeper]}]
|
(defn render-fn [{:keys [outgoing type] :as message} idx _ {:keys [group-chat public? current-public-key space-keeper]}]
|
||||||
|
[react/view {:style (when platform/android? {:scaleY -1})}
|
||||||
(if (= type :datemark)
|
(if (= type :datemark)
|
||||||
[message-datemark/chat-datemark (:value message)]
|
[message-datemark/chat-datemark (:value message)]
|
||||||
(if (= type :gap)
|
(if (= type :gap)
|
||||||
@ -168,7 +169,7 @@
|
|||||||
:group-chat group-chat
|
:group-chat group-chat
|
||||||
:public? public?
|
:public? public?
|
||||||
:current-public-key current-public-key)
|
:current-public-key current-public-key)
|
||||||
space-keeper])))
|
space-keeper]))])
|
||||||
|
|
||||||
(defn messages-view
|
(defn messages-view
|
||||||
[{:keys [chat bottom-space pan-responder space-keeper]}]
|
[{:keys [chat bottom-space pan-responder space-keeper]}]
|
||||||
@ -183,13 +184,16 @@
|
|||||||
{:key-fn #(or (:message-id %) (:value %))
|
{:key-fn #(or (:message-id %) (:value %))
|
||||||
:ref #(reset! messages-list-ref %)
|
:ref #(reset! messages-list-ref %)
|
||||||
:header (when (= chat-type constants/private-group-chat-type)
|
:header (when (= chat-type constants/private-group-chat-type)
|
||||||
[chat.group/group-chat-footer chat-id invitation-admin])
|
[react/view {:style (when platform/android? {:scaleY -1})}
|
||||||
:footer [:<>
|
[chat.group/group-chat-footer chat-id invitation-admin]])
|
||||||
|
:footer [react/view {:style (when platform/android? {:scaleY -1})}
|
||||||
[chat-intro-header-container chat no-messages?]
|
[chat-intro-header-container chat no-messages?]
|
||||||
(when (= chat-type constants/one-to-one-chat-type)
|
(when (= chat-type constants/one-to-one-chat-type)
|
||||||
[invite.chat/reward-messages])]
|
[invite.chat/reward-messages])]
|
||||||
:data messages
|
:data messages
|
||||||
:inverted true
|
;;TODO https://github.com/facebook/react-native/issues/30034
|
||||||
|
:inverted (when platform/ios? true)
|
||||||
|
:style (when platform/android? {:scaleY -1})
|
||||||
:render-data {:group-chat group-chat
|
:render-data {:group-chat group-chat
|
||||||
:public? public?
|
:public? public?
|
||||||
:current-public-key current-public-key
|
:current-public-key current-public-key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user