Info:
This is documentation for Stream Chat React Native SDK v7, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).

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.

import { Channel, FileIcon } from 'stream-chat-react-native';

<Channel FileAttachmentIcon={() => <FileIcon size={40} />}

Props

mimeType

Mime type for this file attachment. for example application/pdf, audio/mp4 etc.

Type
String

size

Size of the icon.

Type
Number
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v7: <Your Question>