const files = message.attachments.filter((a) => a.type === "file");
This is documentation for
Stream Chat React Native SDK v7, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v8)
.
FileAttachmentGroup
Component to render a group of file attachments within the MessageList
.
This is the default component provided to the prop FileAttachmentGroup
on the Channel
component.
Props
messageId
Id of the current message.
Type |
---|
string |
files
Array of file
type attachments to be shown in the grouped UI component.
Type |
---|
Array |
- I'm working with the Stream Chat React Native SDK and would like to ask questions about this documentation page: https://getstream.io/chat/docs/sdk/react-native/v7/ui-components/file-attachment-group.md
- View as markdown
- Open in ChatGPT
- Open in Claude