Skip to main content
CometChatReactionList shows who reacted to a message: a strip of tabs — “All” with the total first, then one per emoji with its count — over the people who reacted. Your own row reads “You” with “Tap to remove” under it; tapping it removes your reaction. The message list opens it as a half-height sheet when you long-press a reaction under a bubble.
CometChatReactionList showing reaction tabs and the users who reacted

Where It Fits


Quick Start

Give it the message and dismiss it when the last reaction is gone:
The sheet’s material and corner radius are the system’s — Liquid Glass on iOS 26, an opaque background1 on iOS 18–25.

Behaviour

  • The sheet opens on All. Pass selectedReaction to open on an emoji’s tab instead.
  • Tapping a tab moves the underline. The rows do not change until you scroll to the end of the list, which loads that tab’s next page.
  • The next page loads whenever the last row appears.
  • Tapping your own row removes your reaction, then calls onItemClick. Tapping anyone else’s row only calls onItemClick. A failed removal leaves the row in place, silently.
  • Reactions by other people while the sheet is open do not update it.
  • onEmpty fires once when the last reaction is gone; onError each time a fetch fails.

Actions and Events

Callback Methods

SDK Events (Real-Time, Automatic)

The sheet does not update while it is open: reactions by other people do not change it.

Functionality


States

The strip and its separator stay in every state. errorText replaces the error text.

Custom View Slots

Every slot is a parameter and a cascading modifier; an initialiser argument wins. A row slot receives the Kit’s ReactedUser — name, emoji, avatarURL and isMe:
Hide parts of every reaction list in a subtree:

Advanced Methods

Store Access

CometChatReactionListStore holds the tabs, the rows and the state. Each list makes its own; pass one to observe it, or a seeded one to preview without a session:
A seeded store never fetches or removes. Set policy.pageLimit on a store to change the page size when no builder is given.

Configuration

Pass the style and the request builder directly: see style and reactionsRequestBuilder under Functionality.

Subclassing

CometChatReactionList is a View struct. Customise it with its slots, modifiers and style.

Accessibility

  • Each tab is a button that reads “emoji, count reactions”, marked selected when active.
  • Each row reads “name, emoji”, plus “Tap to remove” on yours.
  • The shimmer reads “Loading reactions, please wait”.
Rows built with a slot are read as the slot draws them.

Style

CometChatReactionListStyle is sparse: set only what you change.

Next Steps

Message List

Opens the sheet from a long-press on a reaction

Message Information

Delivery and read details for a message

Component Styling

Style every component