stream-chat-react-native-core 5.21.0-beta.1 → 5.21.0-beta.3

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.
Files changed (66) hide show
  1. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +34 -17
  2. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  3. package/lib/commonjs/components/MessageInput/MessageInput.js +36 -30
  4. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  5. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +5 -3
  6. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  7. package/lib/commonjs/i18n/en.json +3 -1
  8. package/lib/commonjs/i18n/fr.json +48 -46
  9. package/lib/commonjs/i18n/he.json +1 -0
  10. package/lib/commonjs/i18n/hi.json +48 -46
  11. package/lib/commonjs/i18n/it.json +48 -46
  12. package/lib/commonjs/i18n/ja.json +1 -0
  13. package/lib/commonjs/i18n/ko.json +1 -0
  14. package/lib/commonjs/i18n/nl.json +48 -46
  15. package/lib/commonjs/i18n/ru.json +48 -46
  16. package/lib/commonjs/i18n/tr.json +48 -46
  17. package/lib/commonjs/native.js +6 -1
  18. package/lib/commonjs/native.js.map +1 -1
  19. package/lib/commonjs/version.json +1 -1
  20. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +34 -17
  21. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  22. package/lib/module/components/MessageInput/MessageInput.js +36 -30
  23. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  24. package/lib/module/contexts/messageInputContext/MessageInputContext.js +5 -3
  25. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  26. package/lib/module/i18n/en.json +3 -1
  27. package/lib/module/i18n/fr.json +48 -46
  28. package/lib/module/i18n/he.json +1 -0
  29. package/lib/module/i18n/hi.json +48 -46
  30. package/lib/module/i18n/it.json +48 -46
  31. package/lib/module/i18n/ja.json +1 -0
  32. package/lib/module/i18n/ko.json +1 -0
  33. package/lib/module/i18n/nl.json +48 -46
  34. package/lib/module/i18n/ru.json +48 -46
  35. package/lib/module/i18n/tr.json +48 -46
  36. package/lib/module/native.js +6 -1
  37. package/lib/module/native.js.map +1 -1
  38. package/lib/module/version.json +1 -1
  39. package/lib/typescript/i18n/en.json +3 -1
  40. package/lib/typescript/i18n/fr.json +48 -46
  41. package/lib/typescript/i18n/he.json +1 -0
  42. package/lib/typescript/i18n/hi.json +48 -46
  43. package/lib/typescript/i18n/it.json +48 -46
  44. package/lib/typescript/i18n/ja.json +1 -0
  45. package/lib/typescript/i18n/ko.json +1 -0
  46. package/lib/typescript/i18n/nl.json +48 -46
  47. package/lib/typescript/i18n/ru.json +48 -46
  48. package/lib/typescript/i18n/tr.json +48 -46
  49. package/lib/typescript/native.d.ts +4 -0
  50. package/lib/typescript/utils/Streami18n.d.ts +2 -0
  51. package/package.json +1 -1
  52. package/src/components/AttachmentPicker/AttachmentPicker.tsx +21 -2
  53. package/src/components/MessageInput/MessageInput.tsx +9 -2
  54. package/src/contexts/messageInputContext/MessageInputContext.tsx +4 -1
  55. package/src/i18n/en.json +3 -1
  56. package/src/i18n/fr.json +48 -46
  57. package/src/i18n/he.json +1 -0
  58. package/src/i18n/hi.json +48 -46
  59. package/src/i18n/it.json +48 -46
  60. package/src/i18n/ja.json +1 -0
  61. package/src/i18n/ko.json +1 -0
  62. package/src/i18n/nl.json +48 -46
  63. package/src/i18n/ru.json +48 -46
  64. package/src/i18n/tr.json +48 -46
  65. package/src/native.ts +9 -0
  66. package/src/version.json +1 -1
@@ -1,69 +1,71 @@
1
1
  {
2
2
  "1 Reply": "1 Antwoord",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
4
+ "Allow access to your Gallery": "Geef toegang tot uw galerij",
5
5
  "Also send to channel": "",
6
- "Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
7
- "Block User": "Blokkeer Gebruiker",
8
- "Cancel": "Annuleer",
9
- "Cannot Flag Message": "Kan bericht niet rapporteren",
10
- "Copy Message": "Bericht kopiëren",
11
- "Delete": "Verwijderen",
12
- "Delete Message": "Verwijder bericht",
13
- "Do you want to send a copy of this message to a moderator for further investigation?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
14
- "Edit Message": "Pas bericht aan",
6
+ "Are you sure you want to permanently delete this message?": "",
7
+ "Block User": "",
8
+ "Cancel": "",
9
+ "Cannot Flag Message": "",
10
+ "Copy Message": "",
11
+ "Delete": "",
12
+ "Delete Message": "",
13
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
14
+ "Edit Message": "",
15
15
  "Editing Message": "",
16
16
  "Emoji matching": "Emoji-overeenkomsten",
17
- "Empty message...": "Leeg bericht...",
18
- "Error loading": "Probleem bij het laden",
19
- "Error loading channel list...": "Probleem bij het laden van de kanalen...",
20
- "Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
21
- "Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
17
+ "Empty message...": "",
18
+ "Error loading": "",
19
+ "Error loading channel list...": "",
20
+ "Error loading messages for this channel...": "",
21
+ "Error while loading, please reload/refresh": "",
22
22
  "File type not supported": "",
23
- "Flag": "Markeer",
24
- "Flag Message": "Markeer bericht",
25
- "Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
23
+ "Flag": "",
24
+ "Flag Message": "",
25
+ "Flag action failed either due to a network issue or the message is already flagged": "",
26
26
  "Instant Commands": "Directe Opdrachten",
27
27
  "Links are disabled": "",
28
- "Loading channels...": "Kanalen aan het laden...",
29
- "Loading messages...": "Berichten aan het laden...",
30
- "Loading...": "Aan het laden...",
31
- "Message Reactions": "",
32
- "Message deleted": "Bericht verwijderd",
33
- "Message flagged": "Bericht gemarkeerd",
34
- "Mute User": "Gebruiker dempen",
28
+ "Loading channels...": "",
29
+ "Loading messages...": "",
30
+ "Loading...": "",
31
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
32
+ "Message Reactions": "Bericht Reacties",
33
+ "Message deleted": "",
34
+ "Message flagged": "",
35
+ "Mute User": "",
35
36
  "Not supported": "niet ondersteund",
36
- "Nothing yet...": "Nog niets...",
37
- "Ok": "Oké",
37
+ "Nothing yet...": "",
38
+ "Ok": "",
38
39
  "Only visible to you": "",
39
- "Photo": "",
40
- "Photos and Videos": "",
41
- "Pin to Conversation": "Vastmaken aan gesprek",
42
- "Pinned by": "Vastgemaakt door",
43
- "Please enable access to your photos and videos so you can share them.": "",
40
+ "Photo": "Foto",
41
+ "Photos and Videos": "Foto's en video's",
42
+ "Pin to Conversation": "",
43
+ "Pinned by": "",
44
+ "Please enable access to your photos and videos so you can share them.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
44
45
  "Please select a channel first": "",
45
- "Reconnecting...": "Opnieuw Verbinding Maken...",
46
- "Reply": "Antwoord",
46
+ "Reconnecting...": "",
47
+ "Reply": "",
47
48
  "Reply to Message": "",
48
- "Resend": "Opnieuw versturen",
49
+ "Resend": "",
49
50
  "Search GIFs": "",
51
+ "Select More Photos": "Selecteer Meer foto's",
50
52
  "Send a message": "",
51
53
  "Sending links is not allowed in this conversation": "",
52
54
  "Slow mode ON": "",
53
- "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
54
- "Thread Reply": "Discussie beantwoorden",
55
- "Unblock User": "Deblokkeer gebruiker",
56
- "Unknown User": "",
57
- "Unmute User": "Dempen van gebruiker opheffen",
58
- "Unpin from Conversation": "Losmaken van gesprek",
59
- "Unread Messages": "Ongelezen Berichten",
60
- "Video": "",
61
- "You": "U",
55
+ "The message has been reported to a moderator.": "",
56
+ "Thread Reply": "",
57
+ "Unblock User": "",
58
+ "Unknown User": "Onbekende gebruiker",
59
+ "Unmute User": "",
60
+ "Unpin from Conversation": "",
61
+ "Unread Messages": "",
62
+ "Video": "Video",
63
+ "You": "",
62
64
  "You can't send messages in this channel": "",
63
65
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
64
- "{{ index }} of {{ photoLength }}": "",
66
+ "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
65
67
  "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
66
68
  "{{ replyCount }} Thread Replies": "",
67
69
  "{{ user }} is typing": "",
68
- "🏙 Attachment...": "🏙 Bijlage..."
70
+ "🏙 Attachment...": ""
69
71
  }
@@ -1,69 +1,71 @@
1
1
  {
2
2
  "1 Reply": "1 Ответ",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
4
+ "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
5
5
  "Also send to channel": "",
6
- "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
7
- "Block User": "Заблокировать пользователя",
8
- "Cancel": "Отмена",
9
- "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
10
- "Copy Message": "Копировать сообщение",
11
- "Delete": "удалять",
12
- "Delete Message": "Удалить сообщение",
13
- "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
14
- "Edit Message": "Редактировать сообщение",
6
+ "Are you sure you want to permanently delete this message?": "",
7
+ "Block User": "",
8
+ "Cancel": "",
9
+ "Cannot Flag Message": "",
10
+ "Copy Message": "",
11
+ "Delete": "",
12
+ "Delete Message": "",
13
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
14
+ "Edit Message": "",
15
15
  "Editing Message": "",
16
16
  "Emoji matching": "Соответствие эмодзи",
17
- "Empty message...": "Пустое сообщение...",
18
- "Error loading": "Ошибка при загрузке",
19
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
20
- "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
21
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
17
+ "Empty message...": "",
18
+ "Error loading": "",
19
+ "Error loading channel list...": "",
20
+ "Error loading messages for this channel...": "",
21
+ "Error while loading, please reload/refresh": "",
22
22
  "File type not supported": "",
23
- "Flag": "Пометить",
24
- "Flag Message": "Пометить сообщение",
25
- "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
23
+ "Flag": "",
24
+ "Flag Message": "",
25
+ "Flag action failed either due to a network issue or the message is already flagged": "",
26
26
  "Instant Commands": "Мгновенные Команды",
27
27
  "Links are disabled": "",
28
- "Loading channels...": "Загружаю каналы...",
29
- "Loading messages...": "Загружаю сообщения...",
30
- "Loading...": "Загружаю...",
31
- "Message Reactions": "",
32
- "Message deleted": "Сообщение удалено",
33
- "Message flagged": "Сообщение отмечено",
34
- "Mute User": "Отключить пользователя",
28
+ "Loading channels...": "",
29
+ "Loading messages...": "",
30
+ "Loading...": "",
31
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
32
+ "Message Reactions": "Сообщения Реакции",
33
+ "Message deleted": "",
34
+ "Message flagged": "",
35
+ "Mute User": "",
35
36
  "Not supported": "не поддерживается",
36
- "Nothing yet...": "Пока ничего нет...",
37
- "Ok": "",
37
+ "Nothing yet...": "",
38
+ "Ok": "",
38
39
  "Only visible to you": "",
39
- "Photo": "",
40
- "Photos and Videos": "",
41
- "Pin to Conversation": "Закрепить к беседе",
42
- "Pinned by": "Закреплено пользователем",
43
- "Please enable access to your photos and videos so you can share them.": "",
40
+ "Photo": "Фото",
41
+ "Photos and Videos": "Фото и видео",
42
+ "Pin to Conversation": "",
43
+ "Pinned by": "",
44
+ "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
44
45
  "Please select a channel first": "",
45
- "Reconnecting...": "Переподключение...",
46
- "Reply": "Ответить",
46
+ "Reconnecting...": "",
47
+ "Reply": "",
47
48
  "Reply to Message": "",
48
- "Resend": "Отправить",
49
+ "Resend": "",
49
50
  "Search GIFs": "",
51
+ "Select More Photos": "Выбрать больше фотографий",
50
52
  "Send a message": "",
51
53
  "Sending links is not allowed in this conversation": "",
52
54
  "Slow mode ON": "",
53
- "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
54
- "Thread Reply": "Тема Ответить",
55
- "Unblock User": "Разблокировать пользователя",
56
- "Unknown User": "",
57
- "Unmute User": "Включить микрофон",
58
- "Unpin from Conversation": "Открепить от беседы",
59
- "Unread Messages": "Непрочитанные Сообщения",
60
- "Video": "",
61
- "You": "Вы",
55
+ "The message has been reported to a moderator.": "",
56
+ "Thread Reply": "",
57
+ "Unblock User": "",
58
+ "Unknown User": "Неизвестный пользователь",
59
+ "Unmute User": "",
60
+ "Unpin from Conversation": "",
61
+ "Unread Messages": "",
62
+ "Video": "видео",
63
+ "You": "",
62
64
  "You can't send messages in this channel": "",
63
65
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
64
- "{{ index }} of {{ photoLength }}": "",
66
+ "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
65
67
  "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
66
68
  "{{ replyCount }} Thread Replies": "",
67
69
  "{{ user }} is typing": "",
68
- "🏙 Attachment...": "🏙 Вложение..."
70
+ "🏙 Attachment...": ""
69
71
  }
@@ -1,69 +1,71 @@
1
1
  {
2
2
  "1 Reply": "1 Cevap",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
4
+ "Allow access to your Gallery": "Galerinize erişime izin verin",
5
5
  "Also send to channel": "",
6
- "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
7
- "Block User": "Kullanıcıyı engelle",
8
- "Cancel": "İptal",
9
- "Cannot Flag Message": "Raporlama Başarısız",
10
- "Copy Message": "Mesajı Kopyala",
11
- "Delete": "Sil",
12
- "Delete Message": "Mesajı Sil",
13
- "Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
14
- "Edit Message": "Mesajı Düzenle",
6
+ "Are you sure you want to permanently delete this message?": "",
7
+ "Block User": "",
8
+ "Cancel": "",
9
+ "Cannot Flag Message": "",
10
+ "Copy Message": "",
11
+ "Delete": "",
12
+ "Delete Message": "",
13
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
14
+ "Edit Message": "",
15
15
  "Editing Message": "",
16
16
  "Emoji matching": "Emoji eşleştirme",
17
- "Empty message...": "Boş mesaj...",
18
- "Error loading": "Yükleme hatası",
19
- "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
20
- "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
21
- "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
17
+ "Empty message...": "",
18
+ "Error loading": "",
19
+ "Error loading channel list...": "",
20
+ "Error loading messages for this channel...": "",
21
+ "Error while loading, please reload/refresh": "",
22
22
  "File type not supported": "",
23
- "Flag": "Raporla",
24
- "Flag Message": "Mesajı Raporla",
25
- "Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
23
+ "Flag": "",
24
+ "Flag Message": "",
25
+ "Flag action failed either due to a network issue or the message is already flagged": "",
26
26
  "Instant Commands": "Anlık Komutlar",
27
27
  "Links are disabled": "",
28
- "Loading channels...": "Kanallar yükleniyor...",
29
- "Loading messages...": "Mesajlar yükleniyor...",
30
- "Loading...": "Yükleniyor...",
31
- "Message Reactions": "",
32
- "Message deleted": "Mesaj silindi",
33
- "Message flagged": "Mesaj işaretlendi",
34
- "Mute User": "Kullanıcıyı sessize al",
28
+ "Loading channels...": "",
29
+ "Loading messages...": "",
30
+ "Loading...": "",
31
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
32
+ "Message Reactions": "Mesaj Tepkileri",
33
+ "Message deleted": "",
34
+ "Message flagged": "",
35
+ "Mute User": "",
35
36
  "Not supported": "Desteklenmiyor",
36
- "Nothing yet...": "Henüz değil...",
37
- "Ok": "Tamam",
37
+ "Nothing yet...": "",
38
+ "Ok": "",
38
39
  "Only visible to you": "",
39
- "Photo": "",
40
- "Photos and Videos": "",
41
- "Pin to Conversation": "Konuşmaya sabitle",
42
- "Pinned by": "Tarafından sabitlendi",
43
- "Please enable access to your photos and videos so you can share them.": "",
40
+ "Photo": "Fotoğraf",
41
+ "Photos and Videos": "Fotoğraflar ve Videolar",
42
+ "Pin to Conversation": "",
43
+ "Pinned by": "",
44
+ "Please enable access to your photos and videos so you can share them.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
44
45
  "Please select a channel first": "",
45
- "Reconnecting...": "Yeniden Bağlanılıyor...",
46
- "Reply": "Yanıtla",
46
+ "Reconnecting...": "",
47
+ "Reply": "",
47
48
  "Reply to Message": "",
48
- "Resend": "Yeniden gönder",
49
+ "Resend": "",
49
50
  "Search GIFs": "",
51
+ "Select More Photos": "Daha Fazla Fotoğraf Seçin",
50
52
  "Send a message": "",
51
53
  "Sending links is not allowed in this conversation": "",
52
54
  "Slow mode ON": "",
53
- "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
54
- "Thread Reply": "Konu Yanıtı",
55
- "Unblock User": "Kullanıcının engelini kaldır",
56
- "Unknown User": "",
57
- "Unmute User": "Kullanıcının sesini aç",
58
- "Unpin from Conversation": "Sabitlemeyi kaldır",
59
- "Unread Messages": "Okunmamış Mesajlar",
60
- "Video": "",
61
- "You": "Sen",
55
+ "The message has been reported to a moderator.": "",
56
+ "Thread Reply": "",
57
+ "Unblock User": "",
58
+ "Unknown User": "Bilinmeyen kullanıcı",
59
+ "Unmute User": "",
60
+ "Unpin from Conversation": "",
61
+ "Unread Messages": "",
62
+ "Video": "Video",
63
+ "You": "",
62
64
  "You can't send messages in this channel": "",
63
65
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
64
- "{{ index }} of {{ photoLength }}": "",
66
+ "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
65
67
  "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
66
68
  "{{ replyCount }} Thread Replies": "",
67
69
  "{{ user }} is typing": "",
68
- "🏙 Attachment...": "🏙 Ek..."
70
+ "🏙 Attachment...": ""
69
71
  }
@@ -19,6 +19,8 @@ declare type OniOS14LibrarySelectionChange = (callback: () => void) => {
19
19
  unsubscribe: () => void;
20
20
  };
21
21
  export declare let oniOS14GalleryLibrarySelectionChange: OniOS14LibrarySelectionChange;
22
+ declare type iOS14RefreshGallerySelection = () => Promise<void>;
23
+ export declare let iOS14RefreshGallerySelection: iOS14RefreshGallerySelection;
22
24
  declare type GetPhotos = ({ after, first }: {
23
25
  first: number;
24
26
  after?: string;
@@ -28,6 +30,7 @@ declare type GetPhotos = ({ after, first }: {
28
30
  }>;
29
31
  endCursor: string;
30
32
  hasNextPage: boolean;
33
+ iOSLimited: boolean;
31
34
  }> | never;
32
35
  export declare let getPhotos: GetPhotos;
33
36
  declare type NetInfo = {
@@ -191,6 +194,7 @@ export declare type VideoType = {
191
194
  };
192
195
  export declare let Video: React.ComponentType<VideoType>;
193
196
  declare type Handlers = {
197
+ iOS14RefreshGallerySelection: iOS14RefreshGallerySelection;
194
198
  compressImage?: CompressImage;
195
199
  deleteFile?: DeleteFile;
196
200
  FlatList?: typeof DefaultFlatList;
@@ -141,6 +141,7 @@ export declare class Streami18n {
141
141
  "Loading channels...": string;
142
142
  "Loading messages...": string;
143
143
  "Loading...": string;
144
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": string;
144
145
  "Message Reactions": string;
145
146
  "Message deleted": string;
146
147
  "Message flagged": string;
@@ -160,6 +161,7 @@ export declare class Streami18n {
160
161
  "Reply to Message": string;
161
162
  Resend: string;
162
163
  "Search GIFs": string;
164
+ "Select More Photos": string;
163
165
  "Send a message": string;
164
166
  "Sending links is not allowed in this conversation": string;
165
167
  "Slow mode ON": string;
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.21.0-beta.1",
4
+ "version": "5.21.0-beta.3",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -1,5 +1,13 @@
1
1
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
- import { BackHandler, Dimensions, Keyboard, Platform, StatusBar, StyleSheet } from 'react-native';
2
+ import {
3
+ BackHandler,
4
+ Button,
5
+ Dimensions,
6
+ Keyboard,
7
+ Platform,
8
+ StatusBar,
9
+ StyleSheet,
10
+ } from 'react-native';
3
11
 
4
12
  import BottomSheet, { BottomSheetFlatList, BottomSheetHandleProps } from '@gorhom/bottom-sheet';
5
13
  import dayjs from 'dayjs';
@@ -11,7 +19,12 @@ import { renderAttachmentPickerItem } from './components/AttachmentPickerItem';
11
19
 
12
20
  import { useAttachmentPickerContext } from '../../contexts/attachmentPickerContext/AttachmentPickerContext';
13
21
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
14
- import { getPhotos, oniOS14GalleryLibrarySelectionChange } from '../../native';
22
+ import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
23
+ import {
24
+ getPhotos,
25
+ iOS14RefreshGallerySelection,
26
+ oniOS14GalleryLibrarySelectionChange,
27
+ } from '../../native';
15
28
  import type { Asset } from '../../types/types';
16
29
  import { vh } from '../../utils/utils';
17
30
 
@@ -97,10 +110,12 @@ export const AttachmentPicker = React.forwardRef(
97
110
  const [currentIndex, setCurrentIndex] = useState(-1);
98
111
  const endCursorRef = useRef<string>();
99
112
  const [photoError, setPhotoError] = useState(false);
113
+ const [iOSLimited, setIosLimited] = useState(false);
100
114
  const hasNextPageRef = useRef(true);
101
115
  const [loadingPhotos, setLoadingPhotos] = useState(false);
102
116
  const [photos, setPhotos] = useState<Asset[]>([]);
103
117
  const attemptedToLoadPhotosOnOpenRef = useRef(false);
118
+ const { t } = useTranslationContext();
104
119
 
105
120
  const getMorePhotos = useCallback(async () => {
106
121
  if (
@@ -121,6 +136,7 @@ export const AttachmentPicker = React.forwardRef(
121
136
  setPhotos((prevPhotos) =>
122
137
  endCursor ? [...prevPhotos, ...results.assets] : results.assets,
123
138
  );
139
+ setIosLimited(results.iOSLimited);
124
140
  hasNextPageRef.current = !!results.hasNextPage;
125
141
  } catch (error) {
126
142
  setPhotoError(true);
@@ -299,6 +315,9 @@ export const AttachmentPicker = React.forwardRef(
299
315
  ref={ref}
300
316
  snapPoints={snapPoints}
301
317
  >
318
+ {iOSLimited && (
319
+ <Button onPress={iOS14RefreshGallerySelection} title={t('Select More Photos')} />
320
+ )}
302
321
  <BottomSheetFlatList
303
322
  contentContainerStyle={[
304
323
  styles.container,
@@ -186,6 +186,7 @@ const MessageInputWithContext = <
186
186
  } = props;
187
187
 
188
188
  const [height, setHeight] = useState(0);
189
+ const { t } = useTranslationContext();
189
190
 
190
191
  const {
191
192
  theme: {
@@ -290,7 +291,10 @@ const MessageInputWithContext = <
290
291
  Number(imageToUpload.fileSize) / MEGA_BYTES_TO_BYTES > MAX_FILE_SIZE_TO_UPLOAD_IN_MB
291
292
  ) {
292
293
  Alert.alert(
293
- `Maximum file size upload limit reached, please upload an image below ${MAX_FILE_SIZE_TO_UPLOAD_IN_MB}MB.`,
294
+ t(
295
+ `Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.`,
296
+ { MAX_FILE_SIZE_TO_UPLOAD_IN_MB },
297
+ ),
294
298
  );
295
299
  setSelectedImages(
296
300
  selectedImages.filter((selectedImage) => selectedImage.uri !== imageToUpload.uri),
@@ -339,7 +343,10 @@ const MessageInputWithContext = <
339
343
  Number(fileToUpload.size) / MEGA_BYTES_TO_BYTES > MAX_FILE_SIZE_TO_UPLOAD_IN_MB
340
344
  ) {
341
345
  Alert.alert(
342
- `Maximum file size upload limit reached, please upload a file below ${MAX_FILE_SIZE_TO_UPLOAD_IN_MB}MB.`,
346
+ t(
347
+ `Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.`,
348
+ { MAX_FILE_SIZE_TO_UPLOAD_IN_MB },
349
+ ),
343
350
  );
344
351
  setSelectedFiles(
345
352
  selectedFiles.filter((selectedFile) => selectedFile.uri !== fileToUpload.uri),
@@ -594,7 +594,10 @@ export const MessageInputProvider = <
594
594
  const totalFileSize = result.assets.reduce((acc, asset) => acc + Number(asset.size), 0);
595
595
  if (totalFileSize / MEGA_BYTES_TO_BYTES > MAX_FILE_SIZE_TO_UPLOAD_IN_MB) {
596
596
  Alert.alert(
597
- `Maximum file size upload limit reached, please upload files below ${MAX_FILE_SIZE_TO_UPLOAD_IN_MB}MB.`,
597
+ t(
598
+ `Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.`,
599
+ { MAX_FILE_SIZE_TO_UPLOAD_IN_MB },
600
+ ),
598
601
  );
599
602
  } else {
600
603
  result.assets.forEach((asset) => {
package/src/i18n/en.json CHANGED
@@ -22,12 +22,13 @@
22
22
  "File type not supported": "File type not supported",
23
23
  "Flag": "Flag",
24
24
  "Flag Message": "Flag Message",
25
- "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.",
25
+ "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",
26
26
  "Instant Commands": "Instant Commands",
27
27
  "Links are disabled": "Links are disabled",
28
28
  "Loading channels...": "Loading channels...",
29
29
  "Loading messages...": "Loading messages...",
30
30
  "Loading...": "Loading...",
31
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
31
32
  "Message Reactions": "Message Reactions",
32
33
  "Message deleted": "Message deleted",
33
34
  "Message flagged": "Message flagged",
@@ -47,6 +48,7 @@
47
48
  "Reply to Message": "Reply to Message",
48
49
  "Resend": "Resend",
49
50
  "Search GIFs": "Search GIFs",
51
+ "Select More Photos": "Select More Photos",
50
52
  "Send a message": "Send a message",
51
53
  "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
52
54
  "Slow mode ON": "Slow mode ON",