Skip to main content
FieldValue
Package@cometchat/chat-uikit-react-native
Key componentsCometChatThreadHeader, CometChatMessageList, CometChatMessageComposer
InitCometChatUIKit.init(UIKitSettings) then CometChatUIKit.login("UID")
Entry pointPass parentMessageId prop to CometChatMessageList and CometChatMessageComposer
Sample appGitHub
RelatedMessage List · Thread Header · All Guides
Threaded messages let users create sub-conversations by replying to specific messages in group chats. This reduces clutter and keeps discussions focused. Before starting, complete the Getting Started guide.

Components

Component / ClassRole
CometChatThreadHeaderDisplays parent message context
CometChatMessageListShows messages filtered by parentMessageId
CometChatMessageComposerInput for composing threaded replies

Integration Steps

1. Thread View Screen

Create a dedicated screen for threaded messages that receives the parent message via navigation params.

2. Trigger Thread View from Messages

In your main messages screen, handle the onThreadRepliesClick callback to navigate to the thread view.

3. Navigation Setup

Configure React Navigation to include the ThreadView screen.

4. Navigate to Specific Message in Thread

Support navigating to a specific message within a thread using goToMessageId prop.

5. Handle Blocked Users in Threads

Show an unblock prompt when the user is blocked instead of the composer.

Feature Matrix

FeatureComponent / Prop
Display parent messageCometChatThreadHeader with parentMessage prop
Show thread repliesCometChatMessageList with parentMessageId prop
Compose thread replyCometChatMessageComposer with parentMessageId prop
Navigate to messagegoToMessageId prop on CometChatMessageList
Thread triggeronThreadRepliesClick callback on CometChatMessageList

Next Steps

Message List

Render real-time message threads.

Thread Header

Customize the thread header component.

All Guides

Browse all feature and formatter guides.

Sample App

Full working sample application on GitHub.