Skip to main content

Where It Fits

CometChatThreadHeader is a Component that displays the parent message and number of replies in a thread.

Minimal Render

With offline support on, a reply the user sends without a connection is counted in the reply count once, when it is queued, and taken back if the reply is removed before it was sent. See Message list and threads.

Styling

Using Style you can customize the look and feel of the component in your app. Pass a styling object as a prop to the CometChatThreadHeader component.

Visibility Props

Custom Template

The template property is used to configure and set a custom template for parent message bubble.

Text Formatters

The thread header renders the parent message with its own textFormatters. It does not inherit them from CometChatMessageList, so pass the same formatters to both, or the parent message shows raw, unformatted text while the replies are formatted.
See the Custom Text Formatter guide for a full example.

Thread Subscription

On React Native the subscription bell belongs to CometChatMessageHeader — the landed design places it in the thread screen’s top bar rather than in the reply-count row. A thread screen usually renders both: the message header as the top bar, and this component beneath it for the parent message and reply count.
This component’s own TrailingView replaces the trailing area of the reply-count bar. It is the escape hatch for putting your own control there — it does not host the subscription bell. See CometChatMessageHeader → Thread Subscription for the bell’s props, and the Thread Subscription guide for the full feature.

Layout Direction

CometChatThreadHeader follows the UI Kit’s layout direction. Pass layoutDirection to set it for this component only: it overrides the global setting for CometChatThreadHeader and everything inside it. See RTL Support.

Next Steps

Threaded Messages

Display the complete threaded conversation view

Message List

Display the list of messages in a conversation

Message Template

Customize message bubble templates

Component Styling

Customize the appearance of UI Kit components