stream-chat-react-native-core 5.31.1 → 5.31.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/MessageList/MessageList.js +9 -18
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +68 -68
- package/lib/commonjs/i18n/fr.json +68 -68
- package/lib/commonjs/i18n/he.json +68 -68
- package/lib/commonjs/i18n/hi.json +68 -68
- package/lib/commonjs/i18n/it.json +68 -68
- package/lib/commonjs/i18n/ja.json +68 -68
- package/lib/commonjs/i18n/ko.json +68 -68
- package/lib/commonjs/i18n/nl.json +68 -68
- package/lib/commonjs/i18n/pt-BR.json +68 -68
- package/lib/commonjs/i18n/ru.json +68 -68
- package/lib/commonjs/i18n/tr.json +68 -68
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/MessageList/MessageList.js +9 -18
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +68 -68
- package/lib/module/i18n/fr.json +68 -68
- package/lib/module/i18n/he.json +68 -68
- package/lib/module/i18n/hi.json +68 -68
- package/lib/module/i18n/it.json +68 -68
- package/lib/module/i18n/ja.json +68 -68
- package/lib/module/i18n/ko.json +68 -68
- package/lib/module/i18n/nl.json +68 -68
- package/lib/module/i18n/pt-BR.json +68 -68
- package/lib/module/i18n/ru.json +68 -68
- package/lib/module/i18n/tr.json +68 -68
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +68 -68
- package/lib/typescript/i18n/fr.json +68 -68
- package/lib/typescript/i18n/he.json +68 -68
- package/lib/typescript/i18n/hi.json +68 -68
- package/lib/typescript/i18n/it.json +68 -68
- package/lib/typescript/i18n/ja.json +68 -68
- package/lib/typescript/i18n/ko.json +68 -68
- package/lib/typescript/i18n/nl.json +68 -68
- package/lib/typescript/i18n/pt-BR.json +68 -68
- package/lib/typescript/i18n/ru.json +68 -68
- package/lib/typescript/i18n/tr.json +68 -68
- package/package.json +1 -1
- package/src/components/MessageList/MessageList.tsx +51 -62
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +0 -1
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +68 -68
- package/src/i18n/fr.json +68 -68
- package/src/i18n/he.json +68 -68
- package/src/i18n/hi.json +68 -68
- package/src/i18n/it.json +68 -68
- package/src/i18n/ja.json +68 -68
- package/src/i18n/ko.json +68 -68
- package/src/i18n/nl.json +68 -68
- package/src/i18n/pt-BR.json +68 -68
- package/src/i18n/ru.json +68 -68
- package/src/i18n/tr.json +68 -68
- package/src/version.json +1 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
3
3
|
"1 Thread Reply": "1 тема Ответить",
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
6
|
-
"Also send to channel": "
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "
|
|
8
|
-
"Are you sure?": "
|
|
9
|
-
"Block User": "
|
|
10
|
-
"Cancel": "
|
|
11
|
-
"Cannot Flag Message": "
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "
|
|
13
|
-
"Copy Message": "
|
|
14
|
-
"Delete": "
|
|
15
|
-
"Delete Message": "
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
18
|
-
"Edit Message": "
|
|
19
|
-
"Edited": "
|
|
20
|
-
"Editing Message": "
|
|
21
|
-
"Emoji matching": "
|
|
22
|
-
"Empty message...": "
|
|
23
|
-
"Error loading": "
|
|
24
|
-
"Error loading channel list...": "
|
|
25
|
-
"Error loading messages for this channel...": "
|
|
26
|
-
"Error while loading, please reload/refresh": "
|
|
27
|
-
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "
|
|
28
|
-
"File type not supported": "
|
|
29
|
-
"Flag": "
|
|
30
|
-
"Flag Message": "
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Allow camera access in device settings": "",
|
|
6
|
+
"Also send to channel": "",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
+
"Are you sure?": "",
|
|
9
|
+
"Block User": "",
|
|
10
|
+
"Cancel": "",
|
|
11
|
+
"Cannot Flag Message": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
+
"Copy Message": "",
|
|
14
|
+
"Delete": "",
|
|
15
|
+
"Delete Message": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
+
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
20
|
+
"Editing Message": "",
|
|
21
|
+
"Emoji matching": "",
|
|
22
|
+
"Empty message...": "",
|
|
23
|
+
"Error loading": "",
|
|
24
|
+
"Error loading channel list...": "",
|
|
25
|
+
"Error loading messages for this channel...": "",
|
|
26
|
+
"Error while loading, please reload/refresh": "",
|
|
27
|
+
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
|
|
28
|
+
"File type not supported": "",
|
|
29
|
+
"Flag": "",
|
|
30
|
+
"Flag Message": "",
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
32
32
|
"Hold to start recording.": "Удерживайте, чтобы начать запись.",
|
|
33
|
-
"How about sending your first message to a friend?": "
|
|
34
|
-
"Instant Commands": "
|
|
35
|
-
"Let's start chatting!": "
|
|
36
|
-
"Links are disabled": "
|
|
37
|
-
"Loading channels...": "
|
|
38
|
-
"Loading messages...": "
|
|
39
|
-
"Loading...": "
|
|
40
|
-
"Message Reactions": "
|
|
33
|
+
"How about sending your first message to a friend?": "",
|
|
34
|
+
"Instant Commands": "",
|
|
35
|
+
"Let's start chatting!": "",
|
|
36
|
+
"Links are disabled": "",
|
|
37
|
+
"Loading channels...": "",
|
|
38
|
+
"Loading messages...": "",
|
|
39
|
+
"Loading...": "",
|
|
40
|
+
"Message Reactions": "",
|
|
41
41
|
"Message deleted": "Сообщение удалено",
|
|
42
|
-
"Message flagged": "
|
|
43
|
-
"Mute User": "
|
|
44
|
-
"No chats here yet…": "
|
|
45
|
-
"Not supported": "
|
|
46
|
-
"Nothing yet...": "
|
|
47
|
-
"Ok": "
|
|
42
|
+
"Message flagged": "",
|
|
43
|
+
"Mute User": "",
|
|
44
|
+
"No chats here yet…": "",
|
|
45
|
+
"Not supported": "",
|
|
46
|
+
"Nothing yet...": "",
|
|
47
|
+
"Ok": "",
|
|
48
48
|
"Only visible to you": "Видно только вам",
|
|
49
|
-
"Open Settings": "
|
|
49
|
+
"Open Settings": "",
|
|
50
50
|
"Photo": "Фото",
|
|
51
|
-
"Photos and Videos": "
|
|
52
|
-
"Pin to Conversation": "
|
|
51
|
+
"Photos and Videos": "",
|
|
52
|
+
"Pin to Conversation": "",
|
|
53
53
|
"Pinned by": "Закреплено пользователем",
|
|
54
54
|
"Please allow Audio permissions in settings.": "Пожалуйста, разрешите разрешения на аудио в настройках.",
|
|
55
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
56
|
-
"Please select a channel first": "
|
|
55
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
56
|
+
"Please select a channel first": "",
|
|
57
57
|
"Reconnecting...": "Переподключение...",
|
|
58
|
-
"Reply": "
|
|
59
|
-
"Reply to Message": "
|
|
60
|
-
"Resend": "
|
|
61
|
-
"Search GIFs": "
|
|
62
|
-
"Select More Photos": "
|
|
63
|
-
"Send Anyway": "
|
|
64
|
-
"Send a message": "
|
|
65
|
-
"Sending links is not allowed in this conversation": "
|
|
66
|
-
"Slow mode ON": "
|
|
67
|
-
"The message has been reported to a moderator.": "
|
|
68
|
-
"Thread Reply": "
|
|
69
|
-
"Unblock User": "
|
|
70
|
-
"Unknown User": "
|
|
71
|
-
"Unmute User": "
|
|
72
|
-
"Unpin from Conversation": "
|
|
73
|
-
"Unread Messages": "
|
|
58
|
+
"Reply": "",
|
|
59
|
+
"Reply to Message": "",
|
|
60
|
+
"Resend": "",
|
|
61
|
+
"Search GIFs": "",
|
|
62
|
+
"Select More Photos": "",
|
|
63
|
+
"Send Anyway": "",
|
|
64
|
+
"Send a message": "",
|
|
65
|
+
"Sending links is not allowed in this conversation": "",
|
|
66
|
+
"Slow mode ON": "",
|
|
67
|
+
"The message has been reported to a moderator.": "",
|
|
68
|
+
"Thread Reply": "",
|
|
69
|
+
"Unblock User": "",
|
|
70
|
+
"Unknown User": "",
|
|
71
|
+
"Unmute User": "",
|
|
72
|
+
"Unpin from Conversation": "",
|
|
73
|
+
"Unread Messages": "",
|
|
74
74
|
"Video": "видео",
|
|
75
75
|
"You": "Вы",
|
|
76
|
-
"You can't send messages in this channel": "
|
|
76
|
+
"You can't send messages in this channel": "",
|
|
77
77
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
78
|
-
"{{ index }} of {{ photoLength }}": "
|
|
79
|
-
"{{ replyCount }} Replies": "
|
|
78
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
79
|
+
"{{ replyCount }} Replies": "",
|
|
80
80
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
81
81
|
"{{ user }} is typing": "{{ user }} пишет",
|
|
82
|
-
"🏙 Attachment...": "
|
|
82
|
+
"🏙 Attachment...": ""
|
|
83
83
|
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
3
3
|
"1 Thread Reply": "1 Konu Yanıtı",
|
|
4
|
-
"Allow access to your Gallery": "
|
|
5
|
-
"Allow camera access in device settings": "
|
|
6
|
-
"Also send to channel": "
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "
|
|
8
|
-
"Are you sure?": "
|
|
9
|
-
"Block User": "
|
|
10
|
-
"Cancel": "
|
|
11
|
-
"Cannot Flag Message": "
|
|
12
|
-
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "
|
|
13
|
-
"Copy Message": "
|
|
14
|
-
"Delete": "
|
|
15
|
-
"Delete Message": "
|
|
16
|
-
"Device camera is used to take photos or videos.": "
|
|
17
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "
|
|
18
|
-
"Edit Message": "
|
|
19
|
-
"Edited": "
|
|
20
|
-
"Editing Message": "
|
|
21
|
-
"Emoji matching": "
|
|
22
|
-
"Empty message...": "
|
|
23
|
-
"Error loading": "
|
|
24
|
-
"Error loading channel list...": "
|
|
25
|
-
"Error loading messages for this channel...": "
|
|
26
|
-
"Error while loading, please reload/refresh": "
|
|
27
|
-
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "
|
|
28
|
-
"File type not supported": "
|
|
29
|
-
"Flag": "
|
|
30
|
-
"Flag Message": "
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "
|
|
4
|
+
"Allow access to your Gallery": "",
|
|
5
|
+
"Allow camera access in device settings": "",
|
|
6
|
+
"Also send to channel": "",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
+
"Are you sure?": "",
|
|
9
|
+
"Block User": "",
|
|
10
|
+
"Cancel": "",
|
|
11
|
+
"Cannot Flag Message": "",
|
|
12
|
+
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
|
|
13
|
+
"Copy Message": "",
|
|
14
|
+
"Delete": "",
|
|
15
|
+
"Delete Message": "",
|
|
16
|
+
"Device camera is used to take photos or videos.": "",
|
|
17
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
|
+
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
20
|
+
"Editing Message": "",
|
|
21
|
+
"Emoji matching": "",
|
|
22
|
+
"Empty message...": "",
|
|
23
|
+
"Error loading": "",
|
|
24
|
+
"Error loading channel list...": "",
|
|
25
|
+
"Error loading messages for this channel...": "",
|
|
26
|
+
"Error while loading, please reload/refresh": "",
|
|
27
|
+
"File is too large: {{ size }}, maximum upload size is {{ limit }}": "",
|
|
28
|
+
"File type not supported": "",
|
|
29
|
+
"Flag": "",
|
|
30
|
+
"Flag Message": "",
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
32
32
|
"Hold to start recording.": "Kayıt yapmak için basılı tutun.",
|
|
33
|
-
"How about sending your first message to a friend?": "
|
|
34
|
-
"Instant Commands": "
|
|
35
|
-
"Let's start chatting!": "
|
|
36
|
-
"Links are disabled": "
|
|
37
|
-
"Loading channels...": "
|
|
38
|
-
"Loading messages...": "
|
|
39
|
-
"Loading...": "
|
|
40
|
-
"Message Reactions": "
|
|
33
|
+
"How about sending your first message to a friend?": "",
|
|
34
|
+
"Instant Commands": "",
|
|
35
|
+
"Let's start chatting!": "",
|
|
36
|
+
"Links are disabled": "",
|
|
37
|
+
"Loading channels...": "",
|
|
38
|
+
"Loading messages...": "",
|
|
39
|
+
"Loading...": "",
|
|
40
|
+
"Message Reactions": "",
|
|
41
41
|
"Message deleted": "Mesaj silindi",
|
|
42
|
-
"Message flagged": "
|
|
43
|
-
"Mute User": "
|
|
44
|
-
"No chats here yet…": "
|
|
45
|
-
"Not supported": "
|
|
46
|
-
"Nothing yet...": "
|
|
47
|
-
"Ok": "
|
|
42
|
+
"Message flagged": "",
|
|
43
|
+
"Mute User": "",
|
|
44
|
+
"No chats here yet…": "",
|
|
45
|
+
"Not supported": "",
|
|
46
|
+
"Nothing yet...": "",
|
|
47
|
+
"Ok": "",
|
|
48
48
|
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
49
|
-
"Open Settings": "
|
|
49
|
+
"Open Settings": "",
|
|
50
50
|
"Photo": "Fotoğraf",
|
|
51
|
-
"Photos and Videos": "
|
|
52
|
-
"Pin to Conversation": "
|
|
51
|
+
"Photos and Videos": "",
|
|
52
|
+
"Pin to Conversation": "",
|
|
53
53
|
"Pinned by": "Tarafından sabitlendi",
|
|
54
54
|
"Please allow Audio permissions in settings.": "Lütfen ayarlarda ses izinlerine izin verin",
|
|
55
|
-
"Please enable access to your photos and videos so you can share them.": "
|
|
56
|
-
"Please select a channel first": "
|
|
55
|
+
"Please enable access to your photos and videos so you can share them.": "",
|
|
56
|
+
"Please select a channel first": "",
|
|
57
57
|
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
58
|
-
"Reply": "
|
|
59
|
-
"Reply to Message": "
|
|
60
|
-
"Resend": "
|
|
61
|
-
"Search GIFs": "
|
|
62
|
-
"Select More Photos": "
|
|
63
|
-
"Send Anyway": "
|
|
64
|
-
"Send a message": "
|
|
65
|
-
"Sending links is not allowed in this conversation": "
|
|
66
|
-
"Slow mode ON": "
|
|
67
|
-
"The message has been reported to a moderator.": "
|
|
68
|
-
"Thread Reply": "
|
|
69
|
-
"Unblock User": "
|
|
70
|
-
"Unknown User": "
|
|
71
|
-
"Unmute User": "
|
|
72
|
-
"Unpin from Conversation": "
|
|
73
|
-
"Unread Messages": "
|
|
58
|
+
"Reply": "",
|
|
59
|
+
"Reply to Message": "",
|
|
60
|
+
"Resend": "",
|
|
61
|
+
"Search GIFs": "",
|
|
62
|
+
"Select More Photos": "",
|
|
63
|
+
"Send Anyway": "",
|
|
64
|
+
"Send a message": "",
|
|
65
|
+
"Sending links is not allowed in this conversation": "",
|
|
66
|
+
"Slow mode ON": "",
|
|
67
|
+
"The message has been reported to a moderator.": "",
|
|
68
|
+
"Thread Reply": "",
|
|
69
|
+
"Unblock User": "",
|
|
70
|
+
"Unknown User": "",
|
|
71
|
+
"Unmute User": "",
|
|
72
|
+
"Unpin from Conversation": "",
|
|
73
|
+
"Unread Messages": "",
|
|
74
74
|
"Video": "Video",
|
|
75
75
|
"You": "Sen",
|
|
76
|
-
"You can't send messages in this channel": "
|
|
76
|
+
"You can't send messages in this channel": "",
|
|
77
77
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
78
|
-
"{{ index }} of {{ photoLength }}": "
|
|
79
|
-
"{{ replyCount }} Replies": "
|
|
78
|
+
"{{ index }} of {{ photoLength }}": "",
|
|
79
|
+
"{{ replyCount }} Replies": "",
|
|
80
80
|
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
81
81
|
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
82
|
-
"🏙 Attachment...": "
|
|
82
|
+
"🏙 Attachment...": ""
|
|
83
83
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "5.31.1",
|
|
4
|
+
"version": "5.31.2-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -78,7 +78,6 @@ const styles = StyleSheet.create({
|
|
|
78
78
|
paddingBottom: 4,
|
|
79
79
|
},
|
|
80
80
|
flex: { flex: 1 },
|
|
81
|
-
invert: { transform: [{ scaleY: -1 }] },
|
|
82
81
|
invertAndroid: {
|
|
83
82
|
// Invert the Y AND X axis to prevent a react native issue that can lead to ANRs on android 13
|
|
84
83
|
// details: https://github.com/Expensify/App/pull/12820
|
|
@@ -1075,22 +1074,6 @@ const MessageListWithContext = <
|
|
|
1075
1074
|
});
|
|
1076
1075
|
}
|
|
1077
1076
|
|
|
1078
|
-
const renderListEmptyComponent = useCallback(
|
|
1079
|
-
() => (
|
|
1080
|
-
<View
|
|
1081
|
-
style={[
|
|
1082
|
-
styles.flex,
|
|
1083
|
-
{ backgroundColor: white_snow },
|
|
1084
|
-
shouldApplyAndroidWorkaround ? styles.invertAndroid : styles.invert,
|
|
1085
|
-
]}
|
|
1086
|
-
testID='empty-state'
|
|
1087
|
-
>
|
|
1088
|
-
<EmptyStateIndicator listType='message' />
|
|
1089
|
-
</View>
|
|
1090
|
-
),
|
|
1091
|
-
[EmptyStateIndicator, shouldApplyAndroidWorkaround],
|
|
1092
|
-
);
|
|
1093
|
-
|
|
1094
1077
|
const ListFooterComponent = useCallback(
|
|
1095
1078
|
() => (
|
|
1096
1079
|
<View style={shouldApplyAndroidWorkaround ? styles.invertAndroid : undefined}>
|
|
@@ -1142,55 +1125,61 @@ const MessageListWithContext = <
|
|
|
1142
1125
|
style={[styles.container, { backgroundColor: white_snow }, container]}
|
|
1143
1126
|
testID='message-flat-list-wrapper'
|
|
1144
1127
|
>
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1128
|
+
{processedMessageList.length === 0 ? (
|
|
1129
|
+
<View style={[styles.flex, { backgroundColor: white_snow }]} testID='empty-state'>
|
|
1130
|
+
<EmptyStateIndicator listType='message' />
|
|
1131
|
+
</View>
|
|
1132
|
+
) : (
|
|
1133
|
+
<FlatList
|
|
1134
|
+
CellRendererComponent={
|
|
1135
|
+
shouldApplyAndroidWorkaround ? InvertedCellRendererComponent : undefined
|
|
1136
|
+
}
|
|
1137
|
+
contentContainerStyle={[
|
|
1138
|
+
styles.contentContainer,
|
|
1139
|
+
additionalFlatListProps?.contentContainerStyle,
|
|
1140
|
+
contentContainer,
|
|
1141
|
+
]}
|
|
1142
|
+
/** Disables the MessageList UI. Which means, message actions, reactions won't work. */
|
|
1143
|
+
data={processedMessageList}
|
|
1144
|
+
extraData={disabled || !hasNoMoreRecentMessagesToLoad}
|
|
1145
|
+
inverted={shouldApplyAndroidWorkaround ? false : inverted}
|
|
1146
|
+
keyboardShouldPersistTaps='handled'
|
|
1147
|
+
keyExtractor={keyExtractor}
|
|
1148
|
+
ListFooterComponent={ListFooterComponent}
|
|
1149
|
+
/**
|
|
1163
1150
|
if autoscrollToTopThreshold is 10, we scroll to recent if before new list update it was already at the bottom (10 offset or below)
|
|
1164
1151
|
minIndexForVisible = 1 means that beyond item at index 1 will not change position on list updates
|
|
1165
1152
|
minIndexForVisible is not used when autoscrollToTopThreshold = 10
|
|
1166
1153
|
*/
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1154
|
+
ListHeaderComponent={ListHeaderComponent}
|
|
1155
|
+
maintainVisibleContentPosition={{
|
|
1156
|
+
autoscrollToTopThreshold: autoscrollToRecent ? 10 : undefined,
|
|
1157
|
+
minIndexForVisible: 1,
|
|
1158
|
+
}}
|
|
1159
|
+
maxToRenderPerBatch={30}
|
|
1160
|
+
onMomentumScrollEnd={onUserScrollEvent}
|
|
1161
|
+
onScroll={handleScroll}
|
|
1162
|
+
onScrollBeginDrag={onScrollBeginDrag}
|
|
1163
|
+
onScrollEndDrag={onScrollEndDrag}
|
|
1164
|
+
onScrollToIndexFailed={onScrollToIndexFailedRef.current}
|
|
1165
|
+
onTouchEnd={dismissImagePicker}
|
|
1166
|
+
onViewableItemsChanged={onViewableItemsChanged.current}
|
|
1167
|
+
ref={refCallback}
|
|
1168
|
+
renderItem={renderItem}
|
|
1169
|
+
scrollEnabled={overlay === 'none'}
|
|
1170
|
+
showsVerticalScrollIndicator={!shouldApplyAndroidWorkaround}
|
|
1171
|
+
style={[
|
|
1172
|
+
styles.listContainer,
|
|
1173
|
+
listContainer,
|
|
1174
|
+
additionalFlatListProps?.style,
|
|
1175
|
+
shouldApplyAndroidWorkaround ? styles.invertAndroid : undefined,
|
|
1176
|
+
]}
|
|
1177
|
+
testID='message-flat-list'
|
|
1178
|
+
viewabilityConfig={flatListViewabilityConfig}
|
|
1179
|
+
{...additionalFlatListPropsExcludingStyle}
|
|
1180
|
+
/>
|
|
1181
|
+
)}
|
|
1182
|
+
|
|
1194
1183
|
{!loading && (
|
|
1195
1184
|
<>
|
|
1196
1185
|
<View style={styles.stickyHeader}>
|
package/src/i18n/en.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"File type not supported": "File type not supported",
|
|
29
29
|
"Flag": "Flag",
|
|
30
30
|
"Flag Message": "Flag Message",
|
|
31
|
-
"Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged
|
|
31
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged",
|
|
32
32
|
"Hold to start recording.": "Hold to start recording.",
|
|
33
33
|
"How about sending your first message to a friend?": "How about sending your first message to a friend?",
|
|
34
34
|
"Instant Commands": "Instant Commands",
|