Channel

Channel is the main entry point for customization and hosts most of the contexts and logic used by the React Native SDK. MessageList, MessageInput, and Thread require it.

Best Practices

  • Create and watch channels once, then reuse the instance across renders.
  • Render Channel under OverlayProvider and Chat to ensure all contexts are available.
  • Customize UI by replacing specific components instead of re-implementing core logic.
  • Keep custom components lightweight to avoid performance regressions in lists.
  • Use channel props for behavior changes before reaching for custom overrides.

Basic Usage

Channel takes a StreamChat channel instance. Create one via creating channels or read it from ChannelList via the onSelect callback.

import { useEffect, useState } from "react";
import { StreamChat } from "stream-chat";
import {
  Channel,
  Chat,
  MessageInput,
  MessageList,
  OverlayProvider,
} from "stream-chat-react-native";

const client = StreamChat.getInstance("api_key");

export const App = () => {
  const [channel, setChannel] = useState();

  useEffect(() => {
    const createAndWatchChannel = async () => {
      const newChannel = client.channel("messaging", "channel_id");
      await newChannel.watch();
      setChannel(newChannel);
    };

    createAndWatchChannel();
  }, []);

  return (
    <OverlayProvider>
      <Chat client={client}>
        <Channel channel={channel}>
          <MessageList />
          <MessageInput />
        </Channel>
      </Chat>
    </OverlayProvider>
  );
};

Context Providers

Channel provides ChannelContext, KeyboardContext, MessageInputContext, MessagesContext, PaginatedMessageListContext, AttachmentPickerContext, MessageComposerContext, ThreadContext, and TypingContext via their hooks.

ContextHook
ChannelContextuseChannelContext
KeyboardContextuseKeyboardContext
MessageInputContextuseMessageInputContext
MessagesContextuseMessagesContext
PaginatedMessageListContextusePaginatedMessageListContext
AttachmentPickerContextuseAttachmentPickerContext
MessageComposerContextuseMessageComposerAPIContext
ThreadContextuseThreadContext
TypingContextuseTypingContext

UI Customizations

Channel is the entry point for most UI customization. Replace components via props and they will be used throughout the SDK where applicable.

Customizing the message avatar can be done easily by providing a custom component to the appropriate prop.

import { Image } from "react-native";
import { Channel, useMessageContext } from "stream-chat-react-native";

const CustomAvatar = () => {
  const { message } = useMessageContext();

  return <Image source={{ uri: message.user?.image }} />;
};

<Channel MessageAvatar={CustomAvatar} />;

Props

channel

Channel instance from the Stream Chat client.

keyboardVerticalOffset

Distance from the top of the screen to the top of the Channel component (often your header height).

Type
number

additionalKeyboardAvoidingViewProps

Extra props passed to KeyboardAvoidingView.

Type
Object

additionalTextInputProps

Extra props passed to the underlying TextInput in MessageInput.

Type
object

additionalPressableProps

Extra props passed to the underlying Pressable used in message components like MessageContent.

Type
object

allowConcurrentAudioPlayback

Allow multiple audio players to play at once. Disabled by default. Available since v8.9.0.

Type
Boolean

allowThreadMessagesInChannel

Show the Show thread message in channel button in thread MessageInput.

TypeDefault
booleantrue

asyncMessagesLockDistance

Pixels the user must drag upward to lock recording and lift their finger without stopping it.

TypeDefault
Number50

asyncMessagesMinimumPressDuration

Minimum press duration (ms) on the record button to start voice recording.

TypeDefault
Number500

asyncMessagesMultiSendEnabled

When enabled, recordings don’t send immediately. They stack in the composer so users can send multiple voice recordings in one message.

TypeDefault
Booleantrue

asyncMessagesSlideToCancelDistance

Pixels the user must drag toward the leading side to cancel voice recording.

TypeDefault
Number100

audioRecordingEnabled

Enable or disable audio recording.

TypeDefault
Booleanfalse

attachmentPickerErrorText

Error text for AttachmentPickerError.

TypeDefault
String"Please enable access to your photos and videos so you can share them."

attachmentPickerErrorButtonText

Button text in AttachmentPickerError that opens the app’s OS settings.

TypeDefault
String"Allow access to your Gallery"

attachmentPickerBottomSheetHeight

Height of the attachment picker bottom sheet when open.

TypeDefault
Number40% of Window Height

attachmentSelectionBarHeight

Height of the attachment selection bar in the attachment picker.

TypeDefault
Number52

attachmentPickerBottomSheetHandleHeight

Height of the attachment picker bottom sheet handle.

TypeDefault
Number20

bottomInset

Height of items located below the MessageInput when present. This inset determines the underlying shift to the MessageList when it is opened.

This can also be set via the setBottomInset function provided by the useAttachmentPickerContext hook.

TypeDefault
Number0

compressImageQuality

Image compression quality before upload.

On iOS, values >= 0.8 usually keep quality while reducing size. A value of 0.8 can roughly halve file size vs 1.0.

TypeDefault
number 0 to 1
(1 is best quality)
iOS: 0.8
Android: 1

customMessageSwipeAction

Custom action executed when the user swipes a message.

TypeDefault
({channel, message}: {channel: Channel, message: LocalMessage}) => voidThe default action is swipe to reply.

deletedMessagesVisibilityType

Controls visibility of deleted messages in the channel.

  • always: Visible to both sender and receiver.
  • never: Visible to no one.
  • sender: Visible only to the sender.
  • receiver: Visible only to the receiver.
TypeDefault
enum('always', 'never', 'receiver', 'sender')'both'

disableKeyboardCompatibleView

Enable or disable the underlying KeyboardAvoidingView.

TypeDefault
booleanfalse

disableTypingIndicator

Disable the typing indicator in MessageList.

TypeDefault
booleanfalse

dismissKeyboardOnMessageTouch

Dismiss the keyboard when the user touches a message in the list.

TypeDefault
booleanfalse

doFileUploadRequest

Override the file upload request when a user selects a file. Must return a Promise.

Use this to store files in your own CDN.

Type
Function

This matches the definition of UploadRequestFn from the stream-chat package.

export type UploadRequestFn = (
  fileLike: FileReference | FileLike,
) => Promise<MinimumUploadRequestResult>;

doMarkReadRequest

Override the mark read request.

This prop should only be used for advanced functionality in which you want to conditionally allow mark-read requests.

Do not use this function to disable read receipts. If you would like to disable read-receipts, this can be done via Read Events on the dashboard.

Example

const doMarkReadRequest = (channel) => {
  if (/** Some custom logic here */) {
    channel.markRead();
  }
};
Type
Function
ParameterDescription
channelchannel instance
setChannelUnreadUiState | undefined(state) =>void

doSendMessageRequest

Override the send message request. This function must return a Promise equivalent to client.sendMessage.

Use this only if you need to alter the message object before sending.

Example

const doSendMessageRequest = (channelId, messageObject) => {
  if (/** Some custom logic here */) {
    messageObject.isSpecial = true;
  }
  return channel.sendMessage(messageObject);
}
Type
function
ParameterDescription
channelIdstring
messageObjectobject
optionsobject | undefined

doUpdateMessageRequest

Override the update message request. This function must return a Promise equivalent to client.updateMessage.

Use this only if you need to alter the message object before updating.

const doUpdateMessageRequest = (channelId, messageObject) => {
  const numberOfUpdates = (messageObject.numberOfUpdates ?? 0) + 1;
  const messageToSend = { ...messageObject, numberOfUpdates };
  return client.updateMessage(messageToSend);
};
Type
function
ParameterDescription
channelIdstring
messageObjectobject
optionsobject | undefined

enableMessageGroupingByUser

Note: Available in SDK version >= v3.9.0.

If false, consecutive messages from the same user won’t be grouped.

TypeDefault
booleantrue

enableSwipeToReply

If true, users can swipe to reply to a message.

TypeDefault
Booleantrue

enforceUniqueReaction

Limits reactions to one per user. Selecting a new reaction replaces the previous one (similar to iMessage).

TypeDefault
booleanfalse

forceAlignMessages

Forces all messages to align left or right. By default, received messages are left and sent messages are right.

TypeDefault
'left' | 'right' | falsefalse

formatDate

Format function for dates in message status and deleted message components.

Type
function
ParameterDescription
datedate to format provided as a string, Date, or number (Unix Timestamp)

getMessagesGroupStyles

Messages are grouped so UI elements like avatars only appear for the last message in a group. Messages are grouped when the same user sends them within a time window (controlled by MaxTimeBetweenGroupedMessages on Channel). Use getMessagesGroupStyles to override group position logic (top, bottom, middle, single), which affects UI like timestamps and avatars.

Default logic lives in getGroupStyles. Access the computed styles via MessageContext.groupStyles in custom components.

Type
function

globalUnreadCountLimit

Maximum number of unread messages to show as a count on a channel before adding a +. The max allowable is 255, which when reached displays as 255+.

TypeDefault
number255

giphyVersion

Giphy image version to render. See the Image Object keys for options.

TypeDefault
string'fixed_height'

handleAttachButtonPress

Customize behavior when the AttachButton is pressed in the message input.

Type
() => void

handleBan

Called when the Ban User action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleCopy

Called when the Copy Message action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleDelete

Called when the Delete Message action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleDeleteForMe

Called when the Delete Message for me action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleEdit

Called when the Edit Message action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleFlag

Called when the Flag Message action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleMarkUnread

Called when the Mark Unread action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleMute

Called when the Mute User action is triggered from the message actions list. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handlePinMessage

Called when the Pin to Conversation or Unpin from Conversation action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleReaction

Called when a reaction is selected in the message menu (add or remove). It does not override default behavior. See customize message actions.

Type
Function
ParameterDescription
messageMessage the action is called on.
reactionTypeString designating the type of reaction.

handleQuotedReply

Called when the Reply action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleRetry

Called when the Retry action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

handleThreadReply

Called when the Thread Reply action is triggered. It does not override default behavior. See customize message actions.

Type
function
ParameterDescription
messagemessage the action is called on

hasCameraPicker

Enable the camera picker in MessageInput.

TypeDefault
Booleantrue

hasCommands

Enable commands in MessageInput.

TypeDefault
booleantrue

hasFilePicker

Enable the file picker in MessageInput.

TypeDefault
Booleantrue

hasImagePicker

Enable the image picker in MessageInput.

TypeDefault
Booleantrue

hideDateSeparators

Hide inline date separators in MessageList.

TypeDefault
booleanfalse

hideStickyDateHeader

Note: Available in SDK version >= v3.9.0.

Hide the sticky date header in MessageList.

TypeDefault
booleanfalse

initialScrollToFirstUnreadMessage

Load the channel starting at the first unread message.

TypeDefault
booleanfalse

isAttachmentEqual

Returns true if rendering nextAttachment would produce the same result as prevAttachment, otherwise false.

Type
function
ParameterDescription
prevAttachmentprevious message attachment to be compared
nextAttachmentnext message attachment to be compared

keyboardBehavior

Behavior for the keyboard passed to the underlying KeyboardAvoidingView.

Type
'height' | 'position' | 'padding'

legacyImageViewerSwipeBehaviour

Note: Available in SDK version >= v3.9.0.

Enable/disable legacy image viewer behavior.

When true, the image viewer lets you swipe through all loaded images in the channel. This adds JS thread work to track and pre-populate images for smooth transitions.

TypeDefault
booleanfalse

loadingMore

Override the loadingMore value supplied by the channel query logic.

Type
Boolean

loadingMoreRecent

Override the loadingMoreRecent value supplied by the channel query logic.

Type
Boolean

markdownRules

Rules for simple-markdown.

Type
object

markReadOnMount

Enable/disable marking the channel as read when Channel mounts.

Type
Boolean

maxMessageLength

Maximum message length. The default comes from the channel config.

Type
number

maxTimeBetweenGroupedMessages

Maximum time (ms) between consecutive messages from the same user to keep them grouped.

TypeDefault
numberinfinite

messageId

Load the channel at a specified message instead of the most recent message.

Type
string

messageActions

An array of actions, or a function returning an array, shown in the message menu. See customize message actions.

TypeDefault
Array | FunctionmessageActions
ParameterDescription
actionInfoAn object containing the original actions and relevant message data

messageContentOrder

Order for rendering message content.

TypeDefault
array['quoted_reply', 'gallery', 'files', 'text', 'attachments']

messageSwipeToReplyHitSlop

Defines the hitSlop area for the message swipe-to-reply gesture.

TypeDefault
Object{ top: number, left: number, bottom: number, right: number }{left: screenWidth, right: screenWidth}

messageTextNumberOfLines

Number of lines for message text in the Message Overlay.

TypeDefault
number5

myMessageTheme

Theme applied to the current user’s messages.

Type
object

Memoize this object or pass a stable reference.

newMessageStateUpdateThrottleInterval

Note: Available in SDK version >= v3.9.0.

Throttle interval (ms) for channel state updates when new messages arrive. Default is 500 ms. For high concurrency, increase (for example 1000 ms) to reduce JS thread load.

TypeDefault
number500

numberOfLines

Maximum number of lines the underlying TextInput in MessageInput can expand to.

TypeDefault
number5

numberOfAttachmentImagesToLoadPerCall

Number of images loaded per CameraRoll.getPhotos call.

TypeDefault
Number60

numberOfAttachmentPickerImageColumns

Number of columns in the image picker.

TypeDefault
Number3

onLongPressMessage

Called when a user long-presses a message. The default opens the message menu.

Type
function
ParameterDescription
payload{ actionHandlers, message }

onPressMessage

Called when a user presses a message.

The default handler behaves differently for reactions and attachments. Handle those cases if you override it.

Type
function
ParameterDescription
payload{ additionalInfo, actionHandlers, message }

additionalInfo provides extra data for certain emitters (for example, user details for textMention).

For example:

<Channel
      onPressMessage={({ additionalInfo, defaultHandler, emitter }) => {

          if (emitter === 'textMention') {
            console.log(additionalInfo?.user);
            return;
          }

          if (emitter === 'card' || emitter === 'textLink') {
            console.log(additionalInfo?.url);
            return;
          }

          if (emitter === 'fileAttachment') {
            console.log(additionalInfo?.attachment);
            return;
          }

          defaultHandler?.();
      }}
    >

additionalInfo may change as we add more emitter use cases.

onPressInMessage

Called on touch start, before onPressMessage.

Type
function
ParameterDescription
payload{ actionHandlers, message }

overrideOwnCapabilities

Override the current user’s capabilities (normally derived from permissions, channel type, and channel settings). These capabilities enable or disable UI features. See:

/chat/docs/javascript/chat_permission_policies/

Example:

<Channel
  overrideOwnCapabilities={{
    uploadFile: false,
    sendLinks: false
  }}

Available keys:

  • banChannelMembers When false, "Block User" is hidden in the message menu.
  • deleteAnyMessage When false, "Delete Message" is hidden for received messages.
  • deleteOwnMessage When false, "Delete Message" is hidden for own messages.
  • flagMessage When false, "Flag Message" is hidden.
  • pinMessage When false, "Pin Message" is hidden.
  • quoteMessage When false, "Reply" is hidden.
  • readEvents When false, read receipts aren’t rendered.
  • sendLinks When false, users can’t send URLs.
  • sendMessage When false, SendMessageDisallowedIndicator replaces the input.
  • sendReaction When false, the reaction selector is hidden.
  • sendReply When false, "Thread Reply" is hidden.
  • sendTypingEvents When false, typing events aren’t sent.
  • updateAnyMessage When false, "Edit Message" is hidden for received messages.
  • updateOwnMessage When false, "Edit Message" is hidden for own messages.
  • uploadFile When false, AttachButton is hidden in MessageInput.
Type
object

reactionListPosition

Position of the reaction list in the message component. Default is above the message content.

TypeDefault value
top | bottom'top'

selectReaction

Full override of the message reaction handler. It must return a function that accepts reactionType (string). See customize message actions.

Type
function | null
ParameterDescription
messagemessage the action is called on

setInputRef

Callback function to set the ref on the underlying TextInput in MessageInput.

Type
function
ParameterDescription
refref of the TextInput

shouldShowUnreadUnderlay

Enable/disable the unread underlay background in the message list.

TypeDefault
boolean|undefinedtrue

stateUpdateThrottleInterval

Note: Available in SDK version >= v3.9.0.

Throttle interval (ms) for channel state updates (excluding new messages). Default is 500 ms. For high concurrency, increase (for example 1000 ms) to reduce JS thread load.

TypeDefault
number500

supportedReactions

List of reactions users can add to messages. See customizing reactions.

TypeDefault
ArrayreactionData

thread

Can be a LocalMessage or ThreadType. Setting it indicates a thread is open. Both types are interchangeable.

With Thread, this displays the thread. With the standard MessageList, it keeps singleton components in OverlayProvider in sync.

Set thread on all Channel components when a thread is open.

Type
object

threadList

Indicates the Channel is rendering a thread. Used to avoid concurrency issues between the main channel and thread.

Type
boolean

openPollCreationDialog

Called when the poll creation button is clicked in the attachment picker. Use it to override the default modal UI.

If overridden, a payload is passed with sendMessage from MessageInputContext for use in CreatePoll.

Type
function
ParameterDescription
payload{ sendMessage }

closePollCreationDialog

Function called whenever the close button is pressed on the poll creation modal. Has no effect if PollCreateContent is custom.

Type
function

hasCreatePoll

Controls whether the poll creation button is visible.

Type
boolean

topInset

Distance from the top of the screen the attachment picker should open to when expanded. This is often set to the header height.

This can also be set via the setTopInset function provided by the useAttachmentPickerContext hook.

TypeDefault
Number0

maximumMessageLimit

This component is available since version 8.6.2 of the SDK.

A prop that limits how many messages are kept in memory.

Useful for high-traffic channels (for example, a livestream) where retaining every message in memory is unnecessary.

Behavior notes:

  • It affects how the underlying MessageList works
  • When the limit is exceeded, the oldest messages are pruned (in memory only)
  • Messages are not pruned if you are near the top of the MessageList
  • Pagination still works for messages removed from memory
Type
number

UI Components Props

AttachButton

Renders the attach button next to the input box.

TypeDefault
ComponentTypeAttachButton

Attachment

Renders attachments in MessageList.

Available props:

  • attachment {object}
TypeDefault
ComponentTypeAttachment

AttachmentActions

Renders additional attachment actions (for example, Giphy send/shuffle/cancel).

TypeDefault
ComponentTypeAttachmentActions

AudioAttachment

Renders the audio attachment.

TypeDefault
ComponentTypeAudioAttachment

AudioAttachmentUploadPreview

Customize the audio attachment upload preview in MessageInput.

TypeDefault
ComponentTypeAudioAttachmentUploadPreview

AudioRecorder

Custom UI for audio recorder controls in MessageInput.

TypeDefault
ComponentTypeAudioRecorder

AudioRecordingInProgress

Custom UI for an in-progress audio recording in MessageInput (waveform, duration, etc.).

TypeDefault
ComponentTypeAudioRecordingInProgress

AudioRecordingLockIndicator

Custom lock indicator for audio recording in MessageInput.

TypeDefault
ComponentTypeAudioRecordingLockIndicator

AudioRecordingPreview

Custom UI to preview and play an audio recording in MessageInput.

TypeDefault
ComponentTypeAudioRecordingPreview

AudioRecordingWaveform

Custom waveform UI for audio recording in MessageInput.

TypeDefault
ComponentTypeAudioRecordingWaveform

AutoCompleteSuggestionHeader

Renders the autocomplete suggestion header.

TypeDefault
ComponentTypeAutoCompleteSuggestionHeader

AutoCompleteSuggestionItem

Renders an autocomplete suggestion item.

TypeDefault
ComponentTypeAutoCompleteSuggestionItem

AutoCompleteSuggestionList

Renders the autocomplete suggestion list.

TypeDefault
ComponentTypeAutoCompleteSuggestionList

AttachmentPickerBottomSheetHandle

Bottom sheet handle component for the attachment picker.

TypeDefault
ComponentTypeundefined | AttachmentPickerBottomSheetHandle

AttachmentPickerSelectionBar

Renders the attachment picker selection bar (image, file, camera icons).

TypeDefault
ComponentTypeundefined | AttachmentPickerSelectionBar

AttachmentPickerIOSSelectMorePhotos

Renders the “select more photos” option for limited gallery access on iOS.

TypeDefault
ComponentTypeundefined | AttachmentPickerIOSSelectMorePhotos

AttachmentPickerError

Error component shown when the app lacks permission to access photos.

TypeDefault
ComponentTypeundefined | AttachmentPickerError

AttachmentPickerErrorImage

Image component used by AttachmentPickerError.

TypeDefault
ComponentTypeundefined | AttachmentPickerErrorImage

AttachmentUploadPreviewList

Renders previews of attached files and images in MessageInput.

TypeDefault
ComponentTypeAttachmentUploadPreviewList

AttachmentUploadProgressIndicator

Renders upload progress for images/files in the message input.

TypeDefault
ComponentTypeAttachmentUploadProgressIndicator

CameraSelectorIcon

Camera selector icon in the attachment selector bar.

TypeDefault
ComponentTypeundefined | CameraSelectorIcon

CooldownTimer

Renders a countdown timer for message send cooldowns in MessageInput.

TypeDefault
ComponentTypeCooldownTimer

Card

Renders custom attachment types. See Custom Attachment.

TypeDefault
ComponentTypeCard

CardCover

Renders the main body of Card attachments. See Custom Attachment.

Type
ComponentType

CardFooter

Renders the footer for Card attachments. See Custom Attachment.

Type
ComponentType

CardHeader

Renders the header for Card attachments. See Custom Attachment.

Type
ComponentType

CommandsButton

Renders the button next to the input box that opens the commands list.

TypeDefault
ComponentTypeCommandsButton

CommandInput

Renders the message input in an active command state.

TypeDefault
ComponentTypeCommandInput

DateHeader

Renders the sticky date header in MessageList.

TypeDefault
ComponentTypeDateHeader

EmptyStateIndicator

Renders when the channel has no messages.

TypeDefault
ComponentTypeEmptyStateIndicator

FileAttachmentIcon

Renders the file icon for file attachments.

TypeDefault
ComponentTypeFileIcon

FileAttachment

Renders file attachments in MessageList.

TypeDefault
ComponentTypeFileAttachment

FileAttachmentGroup

Renders a group of file attachments when a message has multiple files.

TypeDefault
ComponentTypeFileAttachmentGroup

FileSelectorIcon

File selector icon in the attachment selector bar.

TypeDefault
ComponentTypeundefined | FileSelectorIcon

ImageSelectorIcon

Image selector icon in the attachment selector bar.

TypeDefault
ComponentTypeundefined | ImageSelectorIcon

VideoRecorderSelectorIcon

Video recorder selector icon in the attachment selector bar.

TypeDefault
ComponentTypeundefined | VideoRecorderSelectorIcon

FileAttachmentUploadPreview

Customize the file attachment upload preview in MessageInput.

TypeDefault
ComponentTypeFileAttachmentUploadPreview

ImageAttachmentUploadPreview

Customize the image attachment upload preview in MessageInput.

TypeDefault
ComponentTypeImageAttachmentUploadPreview

VideoAttachmentUploadPreview

Customize the video attachment upload preview in MessageInput.

TypeDefault
ComponentTypeVideoAttachmentUploadPreview

ImageOverlaySelectedComponent

Indicator shown for selected images in the image picker.

TypeDefault
ComponentTypeundefined | ImageOverlaySelectedComponent

FlatList

FlatList component used by MessageList.

TypeDefault
ComponentTypeflat-list-mvcp

Renders image attachments in MessageList.

TypeDefault
ComponentTypeGallery

Giphy

Renders Giphy attachments in MessageList.

TypeDefault
ComponentTypeGiphy

ImageLoadingFailedIndicator

Renders when an image fails to load in Gallery.

TypeDefault
ComponentTypeImageLoadingFailedIndicator

ImageLoadingIndicator

Renders while an image is loading in Gallery.

TypeDefault
ComponentTypeImageLoadingIndicator

InlineDateSeparator

Renders inline date separators between messages more than a day apart.

TypeDefault
ComponentTypeInlineDateSeparator

InlineUnreadIndicator

Renders an inline separator in MessageList to mark the last read message.

TypeDefault
ComponentTypeInlineUnreadIndicator

Input

Renders the UI for the enclosed MessageInput. See Customizing Message Input.

Type
ComponentType

InputButtons

Renders action buttons (CommandsButton and AttachButton) on the left side of the MessageInput.

TypeDefault
ComponentTypeInputButtons

InputEditingStateHeader

Renders the header when editing a message in the input.

TypeDefault
ComponentTypeInputEditingStateHeader

InputReplyStateHeader

Renders the reply header in the message input.

TypeDefault
ComponentTypeInputReplyStateHeader

KeyboardCompatibleView

Override the default KeyboardCompatibleView. You likely won't need this; use these props instead:

TypeDefault
ComponentTypeKeyboardCompatibleView

LoadingErrorIndicator

Full-screen error indicator when the channel fails to load.

TypeDefault
ComponentTypeLoadingErrorIndicator

LoadingIndicator

Renders a full-screen loading indicator when a channel is loading.

TypeDefault
ComponentTypeLoadingIndicator

MessageActionList

Renders the message action list in the message menu.

TypeDefault
ComponentTypeMessageActionList | undefined

MessageActionListItem

Renders a message action item within the action list.

TypeDefault
ComponentTypeMessageActionListItem | undefined

MessageAvatar

Renders the sender avatar in MessageList. Only shown for other users’ messages.

TypeDefault
ComponentTypeMessageAvatar

MessageBounce

Renders the bounce action handler for bounced messages in MessageList.

TypeDefault
ComponentTypeMessageBounce

MessageContent

Renders message content (status, attachments, reactions, etc.) in MessageList.

TypeDefault
ComponentTypeMessageContent

MessageDeleted

Renders a deleted message.

TypeDefault
ComponentTypeMessageDeleted

MessageEditedTimestamp

Renders the “edited” label in MessageList. Only shown for other users’ messages.

TypeDefault
ComponentTypeMessageEditedTimestamp

MessageError

Customize the message error component.

TypeDefault
ComponentTypeMessageError

MessageFooter

Renders the message footer in MessageList.

TypeDefault
ComponentTypeMessageFooter

MessageHeader

Renders the header for a message in MessageList.

Type
ComponentType

MessageMenu

Customize the message menu used for actions and reactions.

TypeDefault
ComponentTypeMessageMenu | undefined

MessagePinnedHeader

Renders the pinned message label in MessageList.

Type
ComponentType

MessageReplies

Shows thread reply count and avatars of users who replied.

TypeDefault
ComponentTypeMessageReplies

MessageRepliesAvatars

Renders avatars of users who replied in the thread.

TypeDefault
ComponentTypeMessageRepliesAvatars

MessageSimple

Renders a message in MessageList.

See Customizing Message UI.

TypeDefault
ComponentTypeMessageSimple

MessageStatus

Renders message status (time and read receipts).

TypeDefault
ComponentTypeMessageStatus

MessageSwipeContent

Renders content when the user swipes a message.

TypeDefault
ComponentTypeMessageSwipeContent | undefined

MessageSystem

Renders system messages that inform users about channel changes. System messages are part of history and have type: "system".

System messages appear when:

TypeDefault
ComponentTypeMessageSystem

MessageText

Renders message text. By default, the SDK uses Simple Markdown. If you override this, you must handle markdown rendering yourself.

TypeDefault
ComponentTyperenderText

MessageReactionPicker

Reaction selector shown in the message menu on long-press.

TypeDefault
ComponentTypeMessageReactionPicker | undefined

MessageUserReactionsAvatar

Renders an avatar in message user reactions within the message menu.

TypeDefault
ComponentTypeMessageUserReactionsAvatar | undefined

MessageUserReactionsItem

Customize an individual user reaction item in MessageMenu’s MessageUserReactions (avatar, reaction type, user name, etc.).

TypeDefault
ComponentTypeMessageUserReactionsItem | undefined

MessageUserReactions

Renders the reactions list in the message menu.

TypeDefault
ComponentTypeMessageUserReactions | undefined

MoreOptionsButton

Renders the MessageInput “more options” button (for AttachButton, CommandsButton, etc.).

TypeDefault
ComponentTypeMoreOptionsButton

NetworkDownIndicator

Renders an indicator at the top of the channel when the network/connection is down.

TypeDefault
ComponentTypeNetworkDownIndicator

ReactionListBottom

Renders the reactions list below the message bubble.

TypeDefault
ComponentTypeReactionListBottom

ReactionListTop

Renders the reactions list above the message bubble.

TypeDefault
ComponentTypeReactionListTop

Reply

Renders a preview of the parent message for quoted replies.

TypeDefault
ComponentTypeReply

ScrollToBottomButton

Renders a button that scrolls the message list to the bottom.

TypeDefault
ComponentTypeScrollToBottomButton

SendButton

Renders the send message button inside MessageInput.

TypeDefault
ComponentTypeSendButton

SendMessageDisallowedIndicator

Renders an indicator when the current user can’t send messages.

TypeDefault
ComponentTypeSendMessageDisallowedIndicator

ShowThreadMessageInChannelButton

Renders a checkbox in Thread that sets show_in_channel to true when checked.

TypeDefault
ComponentTypeShowThreadMessageInChannelButton

StartAudioRecordingButton

Custom mic button for audio recording in MessageInput.

TypeDefault
ComponentTypeStartAudioRecordingButton

TypingIndicator

Renders the typing indicator in MessageList.

TypeDefault
ComponentTypeTypingIndicator

TypingIndicatorContainer

Renders the container for the typing indicator in MessageList.

TypeDefault
ComponentTypeTypingIndicatorContainer

UnreadMessagesNotification

Renders the floating unread indicator when the first unread message is off-screen.

TypeDefault
ComponentTypeUnreadMessagesNotification

UrlPreview

Renders URL previews in MessageList.

TypeDefault
ComponentTypeCard

CreatePollContent

A custom UI component used to render the entire poll creation form. It has access to the CreatePollContext values by default through the useCreatePollContext hook.

TypeDefault
ComponentTypeCreatePollContent

PollContent

A Component prop used to render the content of the Poll component in MessageList.

The component has full access to the entire Poll reactive state through the usePollState hook.

TypeDefault
ComponentTypePollContent

Props

PollHeader

A Component prop used to render the header of the PollContent component.

TypeDefault
ComponentTypePollHeader
PollButtons

A Component prop used to render the buttons of the PollContent component.

TypeDefault
ComponentTypePollButtons

StreamingMessageView

Custom UI for an AI-generated message.

TypeDefault
componentStreamingMessageView

StopMessageStreamingButton

Custom button to stop AI generation, shown instead of SendButton in MessageInput.

TypeDefault
componentStopMessageStreamingButton