|
157 | 157 | (debounce/debounce-and-dispatch [:chat.ui/message-visibility-changed e] 5000))
|
158 | 158 |
|
159 | 159 | (defn render-fn [{:keys [outgoing type] :as message} idx _ {:keys [group-chat public? current-public-key space-keeper]}]
|
160 |
| - (if (= type :datemark) |
161 |
| - [message-datemark/chat-datemark (:value message)] |
162 |
| - (if (= type :gap) |
163 |
| - [gap/gap message idx messages-list-ref false] |
164 |
| - ; message content |
165 |
| - [message/chat-message |
166 |
| - (assoc message |
167 |
| - :incoming-group (and group-chat (not outgoing)) |
168 |
| - :group-chat group-chat |
169 |
| - :public? public? |
170 |
| - :current-public-key current-public-key) |
171 |
| - space-keeper]))) |
| 160 | + [react/view {:style (when platform/android? {:scaleY -1})} |
| 161 | + (if (= type :datemark) |
| 162 | + [message-datemark/chat-datemark (:value message)] |
| 163 | + (if (= type :gap) |
| 164 | + [gap/gap message idx messages-list-ref false] |
| 165 | + ; message content |
| 166 | + [message/chat-message |
| 167 | + (assoc message |
| 168 | + :incoming-group (and group-chat (not outgoing)) |
| 169 | + :group-chat group-chat |
| 170 | + :public? public? |
| 171 | + :current-public-key current-public-key) |
| 172 | + space-keeper]))]) |
172 | 173 |
|
173 | 174 | (defn messages-view
|
174 | 175 | [{:keys [chat bottom-space pan-responder space-keeper]}]
|
|
183 | 184 | {:key-fn #(or (:message-id %) (:value %))
|
184 | 185 | :ref #(reset! messages-list-ref %)
|
185 | 186 | :header (when (= chat-type constants/private-group-chat-type)
|
186 |
| - [chat.group/group-chat-footer chat-id invitation-admin]) |
187 |
| - :footer [:<> |
| 187 | + [react/view {:style (when platform/android? {:scaleY -1})} |
| 188 | + [chat.group/group-chat-footer chat-id invitation-admin]]) |
| 189 | + :footer [react/view {:style (when platform/android? {:scaleY -1})} |
188 | 190 | [chat-intro-header-container chat no-messages?]
|
189 | 191 | (when (= chat-type constants/one-to-one-chat-type)
|
190 | 192 | [invite.chat/reward-messages])]
|
191 | 193 | :data messages
|
192 |
| - :inverted true |
| 194 | + ;;TODO https://github.com/facebook/react-native/issues/30034 |
| 195 | + :inverted (when platform/ios? true) |
| 196 | + :style (when platform/android? {:scaleY -1}) |
193 | 197 | :render-data {:group-chat group-chat
|
194 | 198 | :public? public?
|
195 | 199 | :current-public-key current-public-key
|
|
0 commit comments