stream-chat-react-native-core 4.6.0-beta.1 → 4.6.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.
Files changed (98) hide show
  1. package/README.md +3 -3
  2. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  3. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  4. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  5. package/lib/commonjs/components/Message/Message.js.map +1 -1
  6. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +58 -33
  7. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  8. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.md +1 -1
  9. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  10. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  11. package/lib/commonjs/contexts/channelContext/ChannelContext.md +1 -1
  12. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  13. package/lib/commonjs/contexts/channelsContext/ChannelsContext.md +1 -1
  14. package/lib/commonjs/contexts/chatContext/ChatContext.md +1 -1
  15. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.md +1 -1
  16. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.md +1 -1
  17. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  18. package/lib/commonjs/contexts/messageContext/MessageContext.md +1 -1
  19. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  20. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.md +1 -1
  21. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  22. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  23. package/lib/commonjs/contexts/messagesContext/MessagesContext.md +1 -1
  24. package/lib/commonjs/contexts/overlayContext/OverlayContext.md +1 -1
  25. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +1 -1
  26. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.md +1 -1
  27. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  28. package/lib/commonjs/contexts/typingContext/TypingContext.md +1 -1
  29. package/lib/commonjs/version.json +1 -1
  30. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  31. package/lib/module/components/Channel/Channel.js.map +1 -1
  32. package/lib/module/components/Chat/Chat.js.map +1 -1
  33. package/lib/module/components/Message/Message.js.map +1 -1
  34. package/lib/module/components/Message/MessageSimple/MessageContent.js +58 -33
  35. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  36. package/lib/module/components/Message/MessageSimple/utils/renderText.md +1 -1
  37. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  38. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  39. package/lib/module/contexts/channelContext/ChannelContext.md +1 -1
  40. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  41. package/lib/module/contexts/channelsContext/ChannelsContext.md +1 -1
  42. package/lib/module/contexts/chatContext/ChatContext.md +1 -1
  43. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.md +1 -1
  44. package/lib/module/contexts/keyboardContext/KeyboardContext.md +1 -1
  45. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  46. package/lib/module/contexts/messageContext/MessageContext.md +1 -1
  47. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  48. package/lib/module/contexts/messageInputContext/MessageInputContext.md +1 -1
  49. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  50. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  51. package/lib/module/contexts/messagesContext/MessagesContext.md +1 -1
  52. package/lib/module/contexts/overlayContext/OverlayContext.md +1 -1
  53. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +1 -1
  54. package/lib/module/contexts/suggestionsContext/SuggestionsContext.md +1 -1
  55. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  56. package/lib/module/contexts/typingContext/TypingContext.md +1 -1
  57. package/lib/module/version.json +1 -1
  58. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +6 -6
  59. package/lib/typescript/components/Channel/Channel.d.ts +2 -2
  60. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  61. package/lib/typescript/components/Message/Message.d.ts +2 -2
  62. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +6 -6
  63. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +2 -2
  64. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +6 -6
  65. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +2 -2
  66. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -6
  67. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +6 -6
  68. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +20 -20
  69. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/src/components/AttachmentPicker/AttachmentPicker.tsx +6 -6
  72. package/src/components/Channel/Channel.tsx +2 -2
  73. package/src/components/Chat/Chat.tsx +1 -1
  74. package/src/components/Message/Message.tsx +2 -2
  75. package/src/components/Message/MessageSimple/MessageContent.tsx +50 -16
  76. package/src/components/Message/MessageSimple/utils/renderText.md +1 -1
  77. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +0 -12
  78. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +6 -6
  79. package/src/contexts/channelContext/ChannelContext.md +1 -1
  80. package/src/contexts/channelContext/ChannelContext.tsx +2 -2
  81. package/src/contexts/channelsContext/ChannelsContext.md +1 -1
  82. package/src/contexts/channelsContext/ChannelsContext.tsx +6 -6
  83. package/src/contexts/chatContext/ChatContext.md +1 -1
  84. package/src/contexts/imageGalleryContext/ImageGalleryContext.md +1 -1
  85. package/src/contexts/keyboardContext/KeyboardContext.md +1 -1
  86. package/src/contexts/messageContext/MessageContext.md +1 -1
  87. package/src/contexts/messageContext/MessageContext.tsx +2 -2
  88. package/src/contexts/messageInputContext/MessageInputContext.md +1 -1
  89. package/src/contexts/messageInputContext/MessageInputContext.tsx +6 -6
  90. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +6 -6
  91. package/src/contexts/messagesContext/MessagesContext.md +1 -1
  92. package/src/contexts/messagesContext/MessagesContext.tsx +20 -20
  93. package/src/contexts/overlayContext/OverlayContext.md +1 -1
  94. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +1 -1
  95. package/src/contexts/suggestionsContext/SuggestionsContext.md +1 -1
  96. package/src/contexts/themeContext/utils/theme.ts +1 -1
  97. package/src/contexts/typingContext/TypingContext.md +1 -1
  98. package/src/version.json +1 -1
@@ -44,22 +44,22 @@ export declare type MessageContentType = 'attachments' | 'files' | 'gallery' | '
44
44
  export declare type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
45
45
  /**
46
46
  * UI component for Attachment.
47
- * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Attachment.tsx)
47
+ * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)
48
48
  */
49
49
  Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;
50
50
  /**
51
51
  * UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy
52
- * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/AttachmentActions.tsx)
52
+ * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AttachmentActions.tsx)
53
53
  */
54
54
  AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;
55
55
  /**
56
56
  * UI component to display generic media type e.g. giphy, url preview etc
57
- * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Card.tsx)
57
+ * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx)
58
58
  */
59
59
  Card: React.ComponentType<CardProps<StreamChatGenerics>>;
60
60
  /**
61
61
  * UI component for DateHeader
62
- * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/DateHeader.tsx)
62
+ * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)
63
63
  **/
64
64
  DateHeader: React.ComponentType<DateHeaderProps>;
65
65
  /** Should keyboard be dismissed when messaged is touched */
@@ -67,28 +67,28 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
67
67
  enableMessageGroupingByUser: boolean;
68
68
  /**
69
69
  * UI component to display File type attachment.
70
- * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileAttachment.tsx)
70
+ * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)
71
71
  */
72
72
  FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;
73
73
  /**
74
74
  * UI component to display group of File type attachments or multiple file attachments (in single message).
75
- * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileAttachmentGroup.tsx)
75
+ * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)
76
76
  */
77
77
  FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;
78
78
  /**
79
79
  * UI component for attachment icon for type 'file' attachment.
80
- * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileIcon.tsx
80
+ * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx
81
81
  */
82
82
  FileAttachmentIcon: React.ComponentType<FileIconProps>;
83
83
  FlatList: typeof FlatList;
84
84
  /**
85
85
  * UI component to display image attachments
86
- * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Gallery.tsx)
86
+ * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)
87
87
  */
88
88
  Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;
89
89
  /**
90
90
  * UI component for Giphy
91
- * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Giphy.tsx)
91
+ * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)
92
92
  */
93
93
  Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;
94
94
  /**
@@ -101,30 +101,30 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
101
101
  initialScrollToFirstUnreadMessage: boolean;
102
102
  /**
103
103
  * UI component for Message Date Separator Component
104
- * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/InlineDateSeparator.tsx)
104
+ * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)
105
105
  */
106
106
  InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;
107
107
  /**
108
108
  * UI component for InlineUnreadIndicator
109
- * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)
109
+ * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)
110
110
  **/
111
111
  InlineUnreadIndicator: React.ComponentType;
112
112
  Message: React.ComponentType<MessageProps<StreamChatGenerics>>;
113
113
  /**
114
114
  * UI component for MessageAvatar
115
- * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageAvatar.tsx)
115
+ * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)
116
116
  **/
117
117
  MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;
118
118
  /**
119
119
  * UI component for MessageContent
120
- * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageContent.tsx)
120
+ * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageContent.tsx)
121
121
  */
122
122
  MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;
123
123
  /** Order to render the message content */
124
124
  messageContentOrder: MessageContentType[];
125
125
  /**
126
126
  * UI component for MessageDeleted
127
- * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageDeleted.tsx)
127
+ * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageDeleted.tsx)
128
128
  */
129
129
  MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;
130
130
  /**
@@ -138,22 +138,22 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
138
138
  MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;
139
139
  /**
140
140
  * UI component for MessageReplies
141
- * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageReplies.tsx)
141
+ * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)
142
142
  */
143
143
  MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;
144
144
  /**
145
145
  * UI Component for MessageRepliesAvatars
146
- * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)
146
+ * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)
147
147
  */
148
148
  MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;
149
149
  /**
150
150
  * UI component for MessageSimple
151
- * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageSimple.tsx)
151
+ * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageSimple.tsx)
152
152
  */
153
153
  MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;
154
154
  /**
155
155
  * UI component for MessageStatus (delivered/read)
156
- * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageStatus.tsx)
156
+ * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageStatus.tsx)
157
157
  */
158
158
  MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;
159
159
  /**
@@ -167,7 +167,7 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
167
167
  OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
168
168
  /**
169
169
  * UI component for ReactionList
170
- * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Reaction/ReactionList.tsx)
170
+ * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
171
171
  */
172
172
  ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;
173
173
  removeMessage: (message: {
@@ -208,7 +208,7 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
208
208
  }) => void;
209
209
  /**
210
210
  * Custom UI component to display enriched url preview.
211
- * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Card.tsx
211
+ * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx
212
212
  */
213
213
  UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;
214
214
  /**
@@ -386,7 +386,7 @@ export declare type Theme = {
386
386
  eyeIcon: IconProps;
387
387
  /**
388
388
  * Available options for styling text:
389
- * https://github.com/andangrd/react-native-markdown-package/blob/master/styles.js
389
+ * https://github.com/andangrd/react-native-markdown-package/blob/main/styles.js
390
390
  */
391
391
  markdown: MarkdownStyle;
392
392
  messageUser: TextStyle;
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": "4.6.0-beta.1",
4
+ "version": "4.6.1",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -275,27 +275,27 @@ const renderImage = ({
275
275
 
276
276
  export type AttachmentPickerProps = {
277
277
  /**
278
- * Custom UI component to render [draggable handle](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png) of attachment picker.
278
+ * Custom UI component to render [draggable handle](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png) of attachment picker.
279
279
  *
280
- * **Default** [AttachmentPickerBottomSheetHandle](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx)
280
+ * **Default** [AttachmentPickerBottomSheetHandle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx)
281
281
  */
282
282
  AttachmentPickerBottomSheetHandle: React.FC<BottomSheetHandleProps>;
283
283
  /**
284
284
  * Custom UI component to render error component while opening attachment picker.
285
285
  *
286
- * **Default** [AttachmentPickerError](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/AttachmentPickerError.tsx)
286
+ * **Default** [AttachmentPickerError](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/AttachmentPickerError.tsx)
287
287
  */
288
288
  AttachmentPickerError: React.ComponentType<AttachmentPickerErrorProps>;
289
289
  /**
290
290
  * Custom UI component to render error image for attachment picker
291
291
  *
292
- * **Default** [AttachmentPickerErrorImage](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/AttachmentPickerErrorImage.tsx)
292
+ * **Default** [AttachmentPickerErrorImage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/AttachmentPickerErrorImage.tsx)
293
293
  */
294
294
  AttachmentPickerErrorImage: React.ComponentType;
295
295
  /**
296
- * Custom UI component to render overlay component, that shows up on top of [selected image](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png) (with tick mark)
296
+ * Custom UI component to render overlay component, that shows up on top of [selected image](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png) (with tick mark)
297
297
  *
298
- * **Default** [ImageOverlaySelectedComponent](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx)
298
+ * **Default** [ImageOverlaySelectedComponent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx)
299
299
  */
300
300
  ImageOverlaySelectedComponent: React.ComponentType;
301
301
  attachmentPickerBottomSheetHandleHeight?: number;
@@ -304,7 +304,7 @@ export type ChannelPropsWithContext<
304
304
  /**
305
305
  * When true, disables the KeyboardCompatibleView wrapper
306
306
  *
307
- * Channel internally uses the [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
307
+ * Channel internally uses the [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
308
308
  * component to adjust the height of Channel when the keyboard is opened or dismissed. This prop provides the ability to disable this functionality in case you
309
309
  * want to use [KeyboardAvoidingView](https://facebook.github.io/react-native/docs/keyboardavoidingview) or handle dismissal yourself.
310
310
  * KeyboardAvoidingView works well when your component occupies 100% of screen height, otherwise it may raise some issues.
@@ -345,7 +345,7 @@ export type ChannelPropsWithContext<
345
345
  keyboardBehavior?: KeyboardAvoidingViewProps['behavior'];
346
346
  /**
347
347
  * Custom wrapper component that handles height adjustment of Channel component when keyboard is opened or dismissed
348
- * Default component (accepts the same props): [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
348
+ * Default component (accepts the same props): [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
349
349
  *
350
350
  * **Example:**
351
351
  *
@@ -91,7 +91,7 @@ export type ChatProps<
91
91
  */
92
92
  i18nInstance?: Streami18n;
93
93
  /**
94
- * You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/themeContext/utils/theme.ts)
94
+ * You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)
95
95
  *
96
96
  * Please check section about [themes in cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#theme) for details.
97
97
  *
@@ -160,7 +160,7 @@ export type MessagePropsWithContext<
160
160
  * You can call methods available on the Message
161
161
  * component such as handleEdit, handleDelete, handleAction etc.
162
162
  *
163
- * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
163
+ * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
164
164
  *
165
165
  * By default, we show the overlay with all the message actions on long press.
166
166
  *
@@ -173,7 +173,7 @@ export type MessagePropsWithContext<
173
173
  * You can call methods available on the Message
174
174
  * component such as handleEdit, handleDelete, handleAction etc.
175
175
  *
176
- * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
176
+ * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
177
177
  *
178
178
  * By default, we will dismiss the keyboard on press.
179
179
  *
@@ -143,7 +143,16 @@ const MessageContentWithContext = <
143
143
  colors: { accent_red, blue_alice, grey_gainsboro, grey_whisper, transparent, white },
144
144
  messageSimple: {
145
145
  content: {
146
- container: { borderRadius, borderRadiusL, borderRadiusS, ...container },
146
+ container: {
147
+ borderBottomLeftRadius,
148
+ borderBottomRightRadius,
149
+ borderRadius,
150
+ borderRadiusL,
151
+ borderRadiusS,
152
+ borderTopLeftRadius,
153
+ borderTopRightRadius,
154
+ ...container
155
+ },
147
156
  containerInner,
148
157
  errorContainer,
149
158
  errorIcon,
@@ -225,18 +234,46 @@ const MessageContentWithContext = <
225
234
 
226
235
  const isBorderColor = isMyMessage && !error;
227
236
 
228
- const shouldApplyBorderRadius = (firstGroupStyle: string, secondGroupStyle: string): boolean =>
229
- (groupStyle === firstGroupStyle || groupStyle === secondGroupStyle) &&
230
- (!hasThreadReplies || threadList);
237
+ const getBorderRadius = () => {
238
+ // enum('top', 'middle', 'bottom', 'single')
239
+ const groupPosition = groupStyles?.[0];
240
+
241
+ const isBottomOrSingle = groupPosition === 'single' || groupPosition === 'bottom';
242
+ let borderBottomLeftRadius = borderRadiusL;
243
+ let borderBottomRightRadius = borderRadiusL;
244
+
245
+ if (isBottomOrSingle && (!hasThreadReplies || threadList)) {
246
+ // add relevant sharp corner
247
+ if (alignment === 'left') {
248
+ borderBottomLeftRadius = borderRadiusS;
249
+ } else {
250
+ borderBottomRightRadius = borderRadiusS;
251
+ }
252
+ }
253
+
254
+ return {
255
+ borderBottomLeftRadius,
256
+ borderBottomRightRadius,
257
+ };
258
+ };
231
259
 
232
- const applyBorderRadius = (
233
- firstGroupStyle: string,
234
- secondGroupStyle: string,
235
- ): number | undefined => {
236
- if (shouldApplyBorderRadius(firstGroupStyle, secondGroupStyle)) {
237
- return borderRadiusS;
260
+ const getBorderRadiusFromTheme = () => {
261
+ const bordersFromTheme: Record<string, number | undefined> = {
262
+ borderBottomLeftRadius,
263
+ borderBottomRightRadius,
264
+ borderRadius,
265
+ borderTopLeftRadius,
266
+ borderTopRightRadius,
267
+ };
268
+
269
+ // filter out undefined values
270
+ for (const key in bordersFromTheme) {
271
+ if (bordersFromTheme[key] === undefined) {
272
+ delete bordersFromTheme[key];
273
+ }
238
274
  }
239
- return borderRadiusL;
275
+
276
+ return bordersFromTheme;
240
277
  };
241
278
 
242
279
  return (
@@ -313,12 +350,9 @@ const MessageContentWithContext = <
313
350
  styles.containerInner,
314
351
  {
315
352
  backgroundColor,
316
- borderBottomLeftRadius: applyBorderRadius('left_bottom', 'left_single'),
317
- borderBottomRightRadius: applyBorderRadius('right_bottom', 'right_single'),
318
353
  borderColor: isBorderColor ? backgroundColor : grey_whisper,
319
- borderRadius,
320
- borderTopLeftRadius: applyBorderRadius('left_top', 'right_single'),
321
- borderTopRightRadius: applyBorderRadius('right_top', 'right_single'),
354
+ ...getBorderRadius(),
355
+ ...getBorderRadiusFromTheme(),
322
356
  },
323
357
  noBorder ? { borderWidth: 0 } : {},
324
358
  containerInner,
@@ -1,4 +1,4 @@
1
- [src/components/Message/MessageSimple/utils/renderText.ts](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/utils/renderText.ts)
1
+ [src/components/Message/MessageSimple/utils/renderText.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/utils/renderText.ts)
2
2
 
3
3
  Function that handles markdown and parsing for the text of message.
4
4
 
@@ -369,9 +369,6 @@ exports[`Thread should match thread snapshot 1`] = `
369
369
  "borderBottomLeftRadius": 0,
370
370
  "borderBottomRightRadius": 16,
371
371
  "borderColor": "#ECEBEB",
372
- "borderRadius": undefined,
373
- "borderTopLeftRadius": 16,
374
- "borderTopRightRadius": 16,
375
372
  },
376
373
  Object {},
377
374
  Object {},
@@ -620,9 +617,6 @@ exports[`Thread should match thread snapshot 1`] = `
620
617
  "borderBottomLeftRadius": 0,
621
618
  "borderBottomRightRadius": 16,
622
619
  "borderColor": "#ECEBEB",
623
- "borderRadius": undefined,
624
- "borderTopLeftRadius": 16,
625
- "borderTopRightRadius": 16,
626
620
  },
627
621
  Object {},
628
622
  Object {},
@@ -871,9 +865,6 @@ exports[`Thread should match thread snapshot 1`] = `
871
865
  "borderBottomLeftRadius": 0,
872
866
  "borderBottomRightRadius": 16,
873
867
  "borderColor": "#ECEBEB",
874
- "borderRadius": undefined,
875
- "borderTopLeftRadius": 16,
876
- "borderTopRightRadius": 16,
877
868
  },
878
869
  Object {},
879
870
  Object {},
@@ -1170,9 +1161,6 @@ exports[`Thread should match thread snapshot 1`] = `
1170
1161
  "borderBottomLeftRadius": 0,
1171
1162
  "borderBottomRightRadius": 16,
1172
1163
  "borderColor": "#ECEBEB",
1173
- "borderRadius": undefined,
1174
- "borderTopLeftRadius": 16,
1175
- "borderTopRightRadius": 16,
1176
1164
  },
1177
1165
  Object {},
1178
1166
  Object {},
@@ -18,22 +18,22 @@ export type AttachmentPickerContextValue = {
18
18
  */
19
19
  bottomInset: number;
20
20
  /**
21
- * Custom UI component for [camera selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
21
+ * Custom UI component for [camera selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)
22
22
  *
23
- * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)
23
+ * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)
24
24
  */
25
25
  CameraSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
26
26
  closePicker: () => void;
27
27
  /**
28
- * Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
28
+ * Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)
29
29
  *
30
- * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)
30
+ * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)
31
31
  */
32
32
  FileSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
33
33
  /**
34
- * Custom UI component for [image selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
34
+ * Custom UI component for [image selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)
35
35
  *
36
- * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)
36
+ * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)
37
37
  */
38
38
  ImageSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
39
39
  /**
@@ -1,4 +1,4 @@
1
- Please check the `ChannelContextValue` in [ChannelContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/channelContext/ChannelContext.md), for consumable values.
1
+ Please check the `ChannelContextValue` in [ChannelContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/channelContext/ChannelContext.md), for consumable values.
2
2
  Provider for this context exists in `Channel` component. And so, any child component of Channel
3
3
  can get access to context as following:
4
4
 
@@ -36,7 +36,7 @@ export type ChannelContextValue<
36
36
  /**
37
37
  * Custom UI component to display empty state when channel has no messages.
38
38
  *
39
- * **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Indicators/EmptyStateIndicator.tsx)
39
+ * **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Indicators/EmptyStateIndicator.tsx)
40
40
  */
41
41
  EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
42
42
  /**
@@ -155,7 +155,7 @@ export type ChannelContextValue<
155
155
  /**
156
156
  * Custom UI component for sticky header of channel.
157
157
  *
158
- * **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/DateHeader.tsx)
158
+ * **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)
159
159
  */
160
160
  StickyHeader?: React.ComponentType<{ dateString: string }>;
161
161
  /**
@@ -1,4 +1,4 @@
1
- Please check the `ChannelsContextValue` in [ChannelsContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/channelsContext/ChannelsContext.md), for consumable values.
1
+ Please check the `ChannelsContextValue` in [ChannelsContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/channelsContext/ChannelsContext.md), for consumable values.
2
2
  Provider for this context exists in `ChannelList` component. And so, any child component of ChannelList
3
3
  can get access to context as following:
4
4
 
@@ -172,37 +172,37 @@ export type ChannelsContextValue<
172
172
  /**
173
173
  * Custom UI component to render preview avatar.
174
174
  *
175
- * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelAvatar.tsx)
175
+ * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelAvatar.tsx)
176
176
  */
177
177
  PreviewAvatar?: React.ComponentType<ChannelAvatarProps<StreamChatGenerics>>;
178
178
  /**
179
179
  * Custom UI component to render preview of latest message on channel.
180
180
  *
181
- * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
181
+ * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
182
182
  */
183
183
  PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<StreamChatGenerics>>;
184
184
  /**
185
185
  * Custom UI component to render muted status.
186
186
  *
187
- * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
187
+ * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
188
188
  */
189
189
  PreviewMutedStatus?: React.ComponentType<ChannelPreviewMutedStatusProps<StreamChatGenerics>>;
190
190
  /**
191
191
  * Custom UI component to render preview avatar.
192
192
  *
193
- * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
193
+ * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
194
194
  */
195
195
  PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<StreamChatGenerics>>;
196
196
  /**
197
197
  * Custom UI component to render preview avatar.
198
198
  *
199
- * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
199
+ * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
200
200
  */
201
201
  PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;
202
202
  /**
203
203
  * Custom UI component to render preview avatar.
204
204
  *
205
- * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
205
+ * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
206
206
  */
207
207
  PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<StreamChatGenerics>>;
208
208
  };
@@ -1,4 +1,4 @@
1
- Please check the `ChatContextValue` in [ChatContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/chatContext/ChatContext.tsx), for consumable values.
1
+ Please check the `ChatContextValue` in [ChatContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/chatContext/ChatContext.tsx), for consumable values.
2
2
  Provider for this context exists in `Chat` component. And so, any child component of Chat
3
3
  can get access to context as following:
4
4
 
@@ -1,4 +1,4 @@
1
- Please check the `ImageGalleryContextValue` in [ImageGalleryContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx), for consumable values.
1
+ Please check the `ImageGalleryContextValue` in [ImageGalleryContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx), for consumable values.
2
2
  Provider for this context exists in `OverlayProvider` component. And so, any child component of OverlayProvider
3
3
  can get access to context as following:
4
4
 
@@ -1,5 +1,5 @@
1
1
  When user focuses on input box, keyboard opens up on mobile devices. When keyboard opens, it is necessary to update the position of input box and height of content on screen
2
- so that it doesn't get hidden behind keyboard. This is handled by [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx) which
2
+ so that it doesn't get hidden behind keyboard. This is handled by [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx) which
3
3
  is a HOC. It creates a context which contain following function.
4
4
 
5
5
  - **dismissKeyboard** Dismisses the keyboard and adjusts the height of content on screen.
@@ -1,4 +1,4 @@
1
- Please check the `MessageContextValue` in [MessageContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageContext/MessageContext.tsx), for consumable values.
1
+ Please check the `MessageContextValue` in [MessageContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/messageContext/MessageContext.tsx), for consumable values.
2
2
  Provider for this context exists in `Message` component. And so, any child component of `Message`
3
3
  can get access to context as following:
4
4
 
@@ -61,7 +61,7 @@ export type MessageContextValue<
61
61
  * You can call methods available on the Message
62
62
  * component such as handleEdit, handleDelete, handleAction etc.
63
63
  *
64
- * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
64
+ * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
65
65
  *
66
66
  * By default, we show the overlay with all the message actions on long press.
67
67
  *
@@ -76,7 +76,7 @@ export type MessageContextValue<
76
76
  * You can call methods available on the Message
77
77
  * component such as handleEdit, handleDelete, handleAction etc.
78
78
  *
79
- * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
79
+ * Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
80
80
  *
81
81
  * By default, we will dismiss the keyboard on press.
82
82
  *
@@ -1,4 +1,4 @@
1
- Please check the `MessageInputContextValue` in [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageInputContext/MessageInputContext.tsx), for consumable values.
1
+ Please check the `MessageInputContextValue` in [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/messageInputContext/MessageInputContext.tsx), for consumable values.
2
2
  Provider for this context exists in `Channel` component. And so, any child component of `Channel`
3
3
  can get access to context as following:
4
4
 
@@ -228,7 +228,7 @@ export type InputMessageInputContextValue<
228
228
  * being allowed to send another message. This component is displayed in place of the
229
229
  * send button for the MessageInput component.
230
230
  *
231
- * **default** [CooldownTimer](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/CooldownTimer.tsx)
231
+ * **default** [CooldownTimer](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/CooldownTimer.tsx)
232
232
  */
233
233
  CooldownTimer: React.ComponentType<CooldownTimerProps>;
234
234
  editing: boolean | MessageType<StreamChatGenerics>;
@@ -236,7 +236,7 @@ export type InputMessageInputContextValue<
236
236
 
237
237
  /**
238
238
  * Custom UI component for FileUploadPreview.
239
- * Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/FileUploadPreview.tsx
239
+ * Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/FileUploadPreview.tsx
240
240
  */
241
241
  FileUploadPreview: React.ComponentType<FileUploadPreviewProps<StreamChatGenerics>>;
242
242
 
@@ -248,7 +248,7 @@ export type InputMessageInputContextValue<
248
248
  hasImagePicker: boolean;
249
249
  /**
250
250
  * Custom UI component for ImageUploadPreview.
251
- * Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/ImageUploadPreview.tsx
251
+ * Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/ImageUploadPreview.tsx
252
252
  */
253
253
  ImageUploadPreview: React.ComponentType<ImageUploadPreviewProps<StreamChatGenerics>>;
254
254
  InputEditingStateHeader: React.ComponentType<InputEditingStateHeaderProps<StreamChatGenerics>>;
@@ -284,7 +284,7 @@ export type InputMessageInputContextValue<
284
284
  /**
285
285
  * Custom UI component to render upload progress indicator on attachment preview.
286
286
  *
287
- * **Default** [UploadProgressIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/UploadProgressIndicator.tsx)
287
+ * **Default** [UploadProgressIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/UploadProgressIndicator.tsx)
288
288
  */
289
289
  UploadProgressIndicator: React.ComponentType<UploadProgressIndicatorProps>;
290
290
  /**
@@ -345,7 +345,7 @@ export type InputMessageInputContextValue<
345
345
  initialValue?: string;
346
346
  /**
347
347
  * Custom UI component for AutoCompleteInput.
348
- * Has access to all of [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageInputContext/MessageInputContext.tsx)
348
+ * Has access to all of [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/messageInputContext/MessageInputContext.tsx)
349
349
  */
350
350
  Input?: React.ComponentType<
351
351
  Omit<MessageInputProps<StreamChatGenerics>, 'Input'> &
@@ -355,7 +355,7 @@ export type InputMessageInputContextValue<
355
355
  >;
356
356
  /**
357
357
  * Custom UI component to override buttons on left side of input box
358
- * Defaults to [InputButtons](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/InputButtons.tsx),
358
+ * Defaults to [InputButtons](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/InputButtons.tsx),
359
359
  * which contain following components/buttons:
360
360
  *
361
361
  * - AttachButton