Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cometchat avatar

Cometchat Native Components

  • 7 installs
  • 70 repo stars
  • Updated June 23, 2026
  • cometchat/cometchat-skills

Component catalog for the CometChat React Native UI Kit v5 covering names, props, slot views, request builders, hide flags, and style shapes.

About

Serves as the authoritative catalog of every CometChat React Native UI Kit v5 component with its props and callback signatures. A developer consults it before writing any <CometChat*> JSX in React Native.

  • Three composition patterns: two-pane, single thread, tab-based
  • Shared prop conventions across all CometChat components

Cometchat Native Components by the numbers

  • 7 all-time installs (skills.sh)
  • Ranked #801 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cometchat/cometchat-skills --skill cometchat-native-components

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7
repo stars70
Last updatedJune 23, 2026
Repositorycometchat/cometchat-skills

What it does

Component catalog for the CometChat React Native UI Kit v5 covering names, props, slot views, request builders, hide flags, and style shapes.

Files

SKILL.mdMarkdownGitHub ↗

Purpose

Teaches Claude every component the React Native UI Kit exports, with the props, callback signatures, slot views, request builders, and style shapes that actually exist. This is the authoritative reference — never invent component names or props from memory; look them up here.

*Read this skill before writing any `<CometChat>` JSX.**

Ground truth: packages/ChatUiKit/src/index.ts from the UI Kit source + docs/ui-kit/react-native/components-overview.mdx + per-component doc pages.

---

How to use this catalog

The React Native UI Kit is a set of independent components that you compose into chat layouts. Three patterns cover almost every use case:

PatternComponents
Two-pane (inbox)CometChatConversations + CometChatMessageHeader + CometChatMessageList + CometChatMessageComposer
Single thread (1-to-1)CometChatMessageHeader + CometChatMessageList + CometChatMessageComposer (with a resolved user or group)
Tab-based messengerCometChatConversations + CometChatUsers + CometChatGroups + CometChatCallLogs in a bottom-tab bar

Data flow (identical across all 3): a list component emits a CometChat.Conversation / User / Group via onItemPress. Extract the entity (conversation.getConversationWith() for conversations) and pass it as a prop to the header / list / composer.

All components share the same API surface — see § Prop conventions.

---

Prop conventions (applies to every <CometChat*> component)

Four prop families you'll see across the catalog:

FamilyShapeExample
Callbackon<Event>={(param) => void}onItemPress={(conv) => ...}onError={(err) => ...}onSendButtonPress={(msg) => ...}
Request builder<entity>RequestBuilder={new CometChat.<Entity>RequestBuilder()}conversationsRequestBuilder={new CometChat.ConversationsRequestBuilder().setLimit(20)}
Hide / visibility togglehide<Feature>={boolean} \<feature>Visibility={boolean}
View slot (replace a section)<Slot>View={(params) => JSX}PascalCase, returns JSXTitleView={(user, group) => <MyTitle />}LeadingView={(u, g) => <MyAvatar />}
Stylestyle={{ containerStyle: {}, itemStyle: { ... } }}see § 13 Style shape

On-events take positional args, not an event object. onItemPress={(conversation) => ...} receives the CometChat.Conversation directly — no event.target.

Slot views are capitalized: TitleView, SubtitleView, LeadingView, TrailingView, EmptyStateView, ErrorStateView, LoadingStateView, AuxiliaryButtonView. Each slot function gets the same props the default view would have (usually user, group or a single entity).

Style is nested objects. Top-level style accepts containerStyle (outermost wrapper) then component-specific keys. Each inner style is a regular React Native StyleSheet object.

---

1. Lists

All four list components take a request builder, an onItemPress callback, on<List>LongPress for long-press, and style={}.

CometChatConversations

Scrollable list of recent conversations (both user and group).

import { CometChatConversations } from "@cometchat/chat-uikit-react-native";
import { CometChat } from "@cometchat/chat-sdk-react-native";

<CometChatConversations
  conversationsRequestBuilder={
    new CometChat.ConversationsRequestBuilder().setLimit(20)
  }
  onItemPress={(conversation) => {
    const entity = conversation.getConversationWith();   // User | Group
    const type = conversation.getConversationType();      // "user" | "group"
    // navigate / open panel with `entity`
  }}
  onError={(err) => console.error(err)}
  hideHeader={false}
  hideReceipts={false}
  style={{ containerStyle: { backgroundColor: "#fff" } }}
/>

Key props: conversationsRequestBuilder, onItemPress, onItemLongPress, onError, onEmpty, hideReceipts, hideHeader, hideSearch, TitleView, SubtitleView, LeadingView, TrailingView, EmptyStateView, ErrorStateView, LoadingStateView, BackdropView, style.

CometChatUsers

<CometChatUsers
  usersRequestBuilder={new CometChat.UsersRequestBuilder().setLimit(30)}
  onItemPress={(user) => openChatWith(user)}
  searchKeyword=""
  hideStatus={false}
/>

Key props: usersRequestBuilder, onItemPress, onError, onEmpty, searchKeyword, hideStatus, hideSearch, LeadingView, TitleView, SubtitleView, EmptyStateView, ErrorStateView, LoadingStateView, style.

CometChatGroups

<CometChatGroups
  groupsRequestBuilder={
    new CometChat.GroupsRequestBuilder().setLimit(30).joinedOnly(true)
  }
  onItemPress={(group) => openGroupChat(group)}
/>

Key props: same shape as Users, with groupsRequestBuilder instead.

CometChatGroupMembers

<CometChatGroupMembers
  group={selectedGroup}
  groupMemberRequestBuilder={
    new CometChat.GroupMembersRequestBuilder(selectedGroup.getGuid()).setLimit(30)
  }
  onItemPress={(member) => openMemberDetails(member)}
  hideKickMemberOption={false}
  hideBanMemberOption={false}
/>

Key props: group (required — pass a CometChat.Group instance), groupMemberRequestBuilder, onItemPress, onError, onBack, hideKickMemberOption, hideBanMemberOption, hideChangeScopeOption, slot views for each row section, style.

---

2. Messages

CometChatMessageHeader

<CometChatMessageHeader
  user={selectedUser}            // OR group — never both
  hideBackButton={false}
  onBack={() => navigation.goBack()}
  AuxiliaryButtonView={(user, group) => <CometChatCallButtons user={user} group={group} />}
  TitleView={(user, group) => <CustomTitle />}
  SubtitleView={(user, group) => <CustomSubtitle />}
/>

Key props: user OR group (one required), hideBackButton, hideVideoCallButton, hideVoiceCallButton, onBack, TitleView, SubtitleView, LeadingView, TrailingView, AuxiliaryButtonView, BackButtonIconImageResource, style.

CometChatMessageList

Scrollable message feed. Handles reactions, receipts, mentions, threads, and media out of the box.

<CometChatMessageList
  user={selectedUser}
  messageRequestBuilder={
    new CometChat.MessagesRequestBuilder()
      .setUID(selectedUser.getUid())
      .setLimit(30)
  }
  hideReplyInThreadOption={true}       // SEE HARD RULE § 11
  hideReceipts={false}
  onThreadRepliesPress={(message, bubbleView) => openThreadPanel(message)}
  onError={(err) => console.error(err)}
  EmptyStateView={() => <Text>No messages yet</Text>}
  style={{ containerStyle: { backgroundColor: "#fff" } }}
/>

Key props: user OR group, parentMessageId (for thread replies), messageRequestBuilder, goToMessageId (scroll-to-message), searchKeyword (highlight in bubbles), textFormatters, templates (custom message type rendering — CometChatMessageTemplate[]), hideReplyInThreadOption see hard rule § 11, hideReceipts, hideReactions, hideReplyOption, hideEditMessageOption, hideDeleteMessageOption, hideTranslateMessageOption, hideMessagePrivatelyOption, hideDateSeparator, onThreadRepliesPress, onMessageLongPress, onError, all *StateView slots, style.

CometChatMessageComposer

Rich text input. Attachments, mentions, voice notes, sticker picker, reaction keyboard.

<CometChatMessageComposer
  user={selectedUser}
  placeholderText="Type a message..."
  onSendButtonPress={(message) => console.log("sent", message)}
  onError={(err) => console.error(err)}
  disableMentions={false}
  textFormatters={[
    new CometChatMentionsFormatter(),
    new CometChatUrlsFormatter(),
  ]}
  AuxiliaryButtonView={() => <CustomAuxButton />}
  attachmentOptions={(user, group) => [ /* CometChatMessageComposerAction[] */ ]}
/>

Key props: user OR group, parentMessageId (for thread composer), placeholderText, onSendButtonPress, onError, onTextChanged, disableMentions, disableSoundForMessages, textFormatters, attachmentOptions, AuxiliaryButtonView, HeaderView, SendButtonView, VoiceRecordingView, AttachmentIconView, EmojiIconView, style.

CometChatCompactMessageComposer

Compact variant for small screens. Auto-expanding input, rich-text, attachments.

<CometChatCompactMessageComposer
  user={selectedUser}
  enableRichTextEditor={true}
  onSendButtonPress={(message) => {}}
/>

Use this instead of CometChatMessageComposer in drawers, widgets, or embedded placements. Same prop family.

CometChatThreadHeader

Header for a threaded reply view — parent message + reply count + close.

<CometChatThreadHeader
  parentMessage={threadParent}
  onClose={() => setThreadMessage(null)}
  hideReplyCount={false}
/>

Threading composition:

// In the main message list, capture a thread-open request
<CometChatMessageList
  user={selectedUser}
  onThreadRepliesPress={(message) => setThreadMessage(message)}
/>

// When a thread is open, render the thread panel
{threadMessage && (
  <>
    <CometChatThreadHeader
      parentMessage={threadMessage}
      onClose={() => setThreadMessage(null)}
    />
    <CometChatMessageList
      user={selectedUser}
      parentMessageId={threadMessage.getId()}
    />
    <CometChatMessageComposer
      user={selectedUser}
      parentMessageId={threadMessage.getId()}
    />
  </>
)}

---

3. Calling (separate SDK)

Call components live in @cometchat/chat-uikit-react-native but require `@cometchat/calls-sdk-react-native` to be installed to work. Don't import any of these if the calls SDK isn't in the project.

CometChatCallButtons

Voice + video call initiators. Drop into AuxiliaryButtonView on CometChatMessageHeader for phone + camera icons next to a user's name.

<CometChatCallButtons
  user={selectedUser}
  onVoiceCallPress={(session) => navigation.navigate("OngoingCall", { session })}
  onVideoCallPress={(session) => navigation.navigate("OngoingCall", { session })}
  hideVideoCallButton={false}
  hideVoiceCallButton={false}
/>

CometChatIncomingCall

Incoming call notification. Parent-controlled — must be conditionally rendered when an incoming-call event fires on `CometChat.addCallListener`'s `onIncomingCallReceived`. Render at the app root so it's visible on any screen.

DO NOT pass `onAccept` — it short-circuits the kit's internal acceptCall + transition to <CometChatOngoingCall>. The kit fires ccShowOngoingCall after acceptance; let the parent's CometChatUIEventHandler.addCallListener mount the ongoing surface. Only handle onDecline + onError. See cometchat-native-calls §1.8.c and full wiring in cometchat-native-features §3d.
<CometChatIncomingCall
  call={incomingCall}
  onDecline={() => setIncomingCall(null)}
  onError={() => setIncomingCall(null)}
  disableSoundForCalls={false}
/>

CometChatOutgoingCall

Ringing-while-calling screen. Parent-controlled — NOT auto-mounted by `CometChatIncomingCall` or by tapping the call button. To make the call button in <CometChatMessageHeader> actually mount this overlay, register CometChatUIEventHandler.addCallListener and listen for ccOutgoingCall. Full wiring template in cometchat-native-features §3d.

<CometChatOutgoingCall
  call={outgoingCall}
  onClosePress={() => {}}
/>

CometChatOngoingCall

In-call UI — tiles, controls, mute, end-call. Parent-controlled — NOT auto-mounted. Mount when CometChatUIEventHandler.addCallListener's ccShowOngoingCall event fires (kit emits this after acceptCall succeeds OR when the caller's outgoing call is accepted by the peer). Full wiring in cometchat-native-features §3d.

<CometChatOngoingCall
  sessionID={session.sessionId}
  callType="audio"    // or "video"
  onCallEnded={() => navigation.goBack()}
/>

CometChatCallLogs

Scrollable call history.

<CometChatCallLogs
  callLogsRequestBuilder={/* CallLogRequest builder from calls-sdk */}
  onItemPress={(callLog) => openCallDetails(callLog)}
/>

CometChatMeetCallBubble

Call-event message bubble. Auto-picked up by the message list — you don't render it manually.

Wiring: requires CallingExtension to be initialized before CometChatUIKit.init (handled by the calls-sdk auto-init), and <CometChatIncomingCall> mounted at the app root. See cometchat-native-features § Calls.

---

4. AI

CometChatAIAssistantChatHistory

AI assistant conversation history UI.

<CometChatAIAssistantChatHistory
  user={loggedInUser}
  onMessageClicked={(message) => openChat(message)}
  onNewChatButtonClick={() => startNewChat()}
/>

Separate dashboard setup required to enable AI agents. See cometchat-native-features § AI agent.

---

5. Search

CometChatSearch

Full-featured search across conversations + messages + users + groups. Scoped to a user/group when passed a target.

<CometChatSearch
  uid={selectedUser?.getUid()}      // optional — scope to one user's chat
  guid={selectedGroup?.getGuid()}   // optional — scope to one group
  onBack={() => setShowSearch(false)}
  onConversationPress={(conv) => openConversation(conv)}
  onMessagePress={(msg) => scrollToMessage(msg)}
/>

Key props: uid / guid (scope), searchKeyword, onBack, onConversationPress, onMessagePress, onUserPress, onGroupPress, hideConversations, hideMessages, hideUsers, hideGroups, style.

Wire from CometChatMessageHeader's onSearchPress.

Hard rule — never roll your own search. Any request involving
"search", "find messages", "search conversations", or "search across
conversations" MUST use <CometChatSearch> (or hideSearch={false}
on CometChatConversations for a basic name filter). Do NOT build
custom TextInput search bars, hand-rolled result lists, or filter
UIs — they bypass the SDK's pagination, highlighting, and dual-scope
matching that ship with the built-in component.

---

6. Atoms (primitives for custom composition)

Building blocks the higher-level components use internally. Use inside <Slot>View overrides or custom screens.

ComponentPurpose
CometChatAvatarCircular / rounded avatar. image, name (initials fallback), backgroundColor, size
CometChatBadgeSmall pill badge — unread count, typing indicator, labels
CometChatStatusIndicatorOnline/offline dot. status, borderColor
CometChatListItemStandard row — leading view + title/subtitle + trailing view
CometChatDateRelative-time date pill. timestamp, pattern
CometChatBottomSheetModal sheet from bottom. Imperative show() / hide() via ref
CometChatActionSheetiOS-style action-sheet list
CometChatConfirmDialogStandard confirm / cancel dialog
CometChatReportDialogReport-user dialog
CometChatEmojiKeyboardFull emoji picker
CometChatMediaRecorderVoice-note recorder UI
CometChatInlineAudioRecorderInline variant used inside the composer
CometChatReactionsReaction-bar UI
CometChatReactionListFull reaction-list popup
CometChatQuickReactionsQuick reactions prompt (long-press)
CometChatMessagePreviewReply-quote preview in the composer

All atoms take style={} in the same nested-object shape.

---

7. Bubbles

The message list renders bubbles automatically based on message type. Use them directly only when you need a custom bubble template.

BubbleRenders
CometChatTextBubbleText messages
CometChatImageBubbleImage messages
CometChatAudioBubbleAudio clip messages
CometChatVideoBubbleVideo messages
CometChatFileBubbleFile attachments
CometChatMeetCallBubbleCall event marker (auto)

Extension-provided bubbles (only present if the extension is registered):

BubbleExtension
CometChatStickerBubbleStickers
LinkPreviewBubbleLink previews
MessageTranslationBubbleTranslation inline
CometChatCollaborativeDocumentBubbleCollab doc
CometChatCollaborativeWhiteBoardBubbleCollab whiteboard

---

8. Formatters (custom text rendering)

Pass via CometChatMessageList.textFormatters or the composer's same prop.

FormatterTransforms
CometChatMentionsFormatter@uid → linked mention bubble
CometChatUrlsFormatterURLs → tappable links
CometChatRichTextFormatterMarkdown-ish **bold**, *italic*, __underline__, inline code
CometChatTextFormatterBase class — extend for custom formatters
<CometChatMessageList
  user={selectedUser}
  textFormatters={[
    new CometChatMentionsFormatter(),
    new CometChatUrlsFormatter(),
    new CometChatRichTextFormatter(),
  ]}
/>

See cometchat-native-customization for the extends CometChatTextFormatter recipe.

---

9. Infrastructure (static classes + event bus)

CometChatUIKit

Static class — init + login + logout + send.

MethodPurpose
CometChatUIKit.init(settings)Initialize. Must resolve before any component renders.
CometChatUIKit.login({ uid })Log in (dev mode). Takes an object, not login("...").
CometChatUIKit.login({ authToken })Log in with a server-minted token (production). Same method as dev, different arg.
CometChatUIKit.getLoggedInUser()Returns current CometChat.User or null (Promise).
CometChatUIKit.logout()Log out + clear session.
CometChatUIKit.sendCustomMessage(msg)Send custom message (used by calling, extensions).
CometChatUIKit.uiKitSettingsRead back the settings passed to init().

UIKitSettings (flat object passed to init)

The v5 RN UI Kit's init() takes a flat UIKitSettings object — there is no UIKitSettingsBuilder on RN (that's a web-kit pattern). See cometchat-native-core § 1.

CometChatUIEventHandler

Event bus. Subscribe to UI events emitted by components.

import { CometChatUIEventHandler } from "@cometchat/chat-uikit-react-native";

const listenerId = "MY_LISTENER_" + Date.now();

CometChatUIEventHandler.addMessageListener(listenerId, {
  ccMessageSent: ({ message }) => { /* ... */ },
  ccMessageEdited: ({ message }) => { /* ... */ },
  ccMessageDeleted: ({ message }) => { /* ... */ },
});

// Cleanup:
CometChatUIEventHandler.removeMessageListener(listenerId);

Also: addConversationListener, addGroupListener, addUserListener, addCallListener (all paired with remove*Listener).

CometChatMessageTemplate + CometChatMessageOption

  • `CometChatMessageTemplate`: register a custom message type. Pass via templates prop on CometChatMessageList.
  • `CometChatMessageOption`: override or extend long-press options on a message.

See cometchat-native-customization for recipes.

CometChatSoundManager

import { CometChatSoundManager, SoundOutput } from "@cometchat/chat-uikit-react-native";
CometChatSoundManager.play(SoundOutput.incomingMessage);

DataSource / DataSourceDecorator / MessageDataSource / ExtensionsDataSource / ChatConfigurator

Lower-level extension points for deep customization. cometchat-native-customization § Tier 4 covers when to use these instead of props.

---

10. Extensions (opt-in)

Extensions add message types + features that are toggled on the app's backend (via cometchat apply-feature <id> for boolean extensions and AI features, or via the dashboard for third-party-key extensions like Giphy / Stipop). Each ships its own bubble + composer action. Register via the extensions field on CometChatUIKit.init({ ... }).

ExtensionAdds
PollsExtensionCometChatCreatePoll composer action + vote-tracking bubble
StickersExtensionSticker picker + CometChatStickerBubble
LinkPreviewExtensionLinkPreviewBubble for rich link cards
MessageTranslationExtensionPer-message translate option
CollaborativeDocumentExtensionShared-doc composer action + bubble
CollaborativeWhiteboardExtensionShared-whiteboard composer action + bubble
ThumbnailGenerationExtensionAuto-thumbnails for image attachments

See cometchat-native-features for the per-extension recipe — most are pure boolean (cometchat apply-feature <id>); the AI ones need --openai-key sk-...; Giphy / Stipop / Tenor / Chatwoot / Intercom need third-party config in the dashboard.

---

11. Hard rule — hideReplyInThreadOption is mandatory on every MessageList

Every `<CometChatMessageList>` MUST include `hideReplyInThreadOption` unless the integration also wires a full thread panel (CometChatThreadHeader + scoped CometChatMessageList with parentMessageId + scoped CometChatMessageComposer with parentMessageId).

The kit's default (hideReplyInThreadOption: false) puts a "Reply in Thread" entry in the message action menu that silently does nothing when no panel is wired. In drawer / widget / modal / stack-screen integrations without a thread panel, the option is a dead click.

Every example in this catalog includes the flag for a reason — keep it. The only place you can omit it is inside a full thread-panel composition (see § 2 Threading).

---

12. Common prop-finding recipe

When a user's request isn't obviously covered, check in this order before writing custom code:

1. Named component in this catalog fits? ("show call history" → CometChatCallLogs). 2. *A `hide / visibility prop?** ("hide receipts" → hideReceipts={true}, not custom bubbles). 3. **A <Slot>View prop?** ("customize the header title" → TitleView={(u, g) => <MyTitle />}, not a wholesale header replacement). 4. **A RequestBuilder`? ("filter conversations" → `conversationsRequestBuilder` with `.setUserTags([...])`, not post-render filtering). 5. `textFormatters` + `templates` for message-rendering customization. 6. `CometChatUIEventHandler` for cross-component communication. 7. Only then* escalate to cometchat-native-customization § Tier 4 (DataSource decorators, ChatConfigurator).

Never hand-roll a bubble, a header, or a list when the kit ships one — you'll miss theming, reactions, typing indicators, receipts, and cross-framework behavior the built-ins handle.

---

13. Style shape reference

Every style prop follows a nested-object shape. Pass style={} for no customization; override only the keys you care about.

<CometChatMessageList
  style={{
    containerStyle: { backgroundColor: "#fff", flex: 1 },
    headerStyle: { titleStyle: { color: "#000" } },
    avatarStyle: { containerStyle: { borderRadius: 8 } },
    dateStyle: { textStyle: { fontSize: 10 } },
  }}
/>

Common style keys across components:

  • containerStyle — outermost wrapper
  • itemStyle — individual list rows
  • headerStyle, titleStyle, subtitleStyle
  • avatarStyle, badgeStyle, statusIndicatorStyle
  • bubbleStyle (message list), composerStyle (composer)
  • emptyStateStyle, errorStateStyle, loadingStateStyle

Theme-level tokens (primary, textPrimary, etc.) propagate via CometChatThemeProvider — prefer overriding theme tokens for app-wide changes and style={} only for per-component tweaks. See cometchat-native-theming.

---

Skill routing reference

SkillWhen to route
cometchat-native-coreAlways read first — init, login, provider chain
cometchat-native-componentsThis skill — any time you write <CometChat*> JSX
cometchat-native-placementDeciding WHERE components go (stack / tabs / modal / sheet)
cometchat-native-customizationtextFormatters, templates, custom slot views, event bus
cometchat-native-featuresAdding calls, extensions, AI
cometchat-native-themingstyle={} not enough — need app-wide color / typography changes
cometchat-native-productionlogin({ authToken }) setup
cometchat-native-troubleshooting<CometChat*> renders nothing or throws at runtime

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.