Skip to main content
FieldValue
Package@cometchat/chat-uikit-react-native
Key componentsCometChatSearch, CometChatMessageList
InitCometChatUIKit.init(UIKitSettings) then CometChatUIKit.login("UID")
PurposeFull-text message search across conversations with result routing and navigation
Sample appGitHub
RelatedMessage List · All Guides
Search Messages lets users locate specific messages across conversations and groups using keyword search, then navigate directly to the result. Before starting, complete the Getting Started guide.

Components

Component / ClassRole
CometChatSearchMain search interface with conversation and message results
CometChatMessageListDisplays messages with search highlighting via searchKeyword prop

Integration Steps

1. Search Messages Screen

Create a dedicated search screen using CometChatSearch component.

2. Trigger Search from Messages Screen

Add a search button to your messages header that navigates to the search screen.

3. Highlight Search Results

When navigating from search results, pass searchKeyword to highlight matching text in messages.

4. Navigation Setup

Add the search screen to your navigation stack.

Feature Matrix

FeatureComponent / Prop
Search interfaceCometChatSearch
Conversation resultsonConversationClicked callback
Message resultsonMessageClicked callback
Scoped searchuid or guid props to limit search scope
Keyword highlightingsearchKeyword prop on CometChatMessageList
Navigate to messagegoToMessageId prop on CometChatMessageList

Next Steps

Message List

Render real-time message threads.

Threaded Messages

Implement threaded message replies.

All Guides

Browse all feature and formatter guides.

Sample App

Full working sample application on GitHub.