import { Channel, FileIcon } from 'stream-chat-react-native';
<Channel FileAttachmentIcon={() => <FileIcon size={40} />}
This is documentation for
Stream Chat React Native SDK v3, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
FileIcon
Component to render the file attachment icon within the MessageList
.
Basic Usage
You can customize this component and provide it back to the SDK via the FileAttachmentIcon
prop on Channel
if desired.
Changing the size of the file attachment icon can be easily accomplished.
Props
mimeType
Mime type for this file attachment. for example application/pdf
, audio/mp4
etc.
Type |
---|
string |
size
Size of the icon.
Type |
---|
number |
On this page: