This is documentation for the release candidate Stream Chat React Native SDK v6. For the latest stable version, see the latest version (v5).

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.

const files = message.attachments.filter(a => a.type === 'file');
Type
Array

© Getstream.io, Inc. All Rights Reserved.