Conversation List

A messenger's conversations, a row each with its picture, name, last message, time, unread count and state, and the people's stories over them.

import { AvatarStrip, ConversationList } from "@plexui/react-native"

Examples

Overview

Platforms

iOS 26Android
Native componentNone: a messenger's chat listNone: Material 3's two-line list item, as Google Messages's conversations
Row76 tall, a 60 picture 16 in, two lines of the message always kept, a hairline from the words' start72 tall, a 40 picture 16 in, one line of the message, no hairlines
unreadCountA 20 counter from 39 down, the accent's, gray when mutedMaterial's large badge, 16 tall; the row's words in bold
authorA line of its own over one line of the messageBefore the message, on its line
pinnedThe pin at the end while nothing is unreadThe pin at the end while nothing is unread
online, typing, mediaA 14 green dot 2 in from the picture's corner; the three dots and "typing" on the message's first line; an 18 thumbnail before itA 12 dot on the 40 picture's corner; the same typing line and thumbnail on the one line
statusA clock, one check, two checks in the accent, a red mark, before the timeThe same, before the time
PressThe row's gray highlightA ripple
AvatarStripA photo app's stories: 79.33 in a gradient ring reaching 46.33, items 104.67 wide from the startThe same

API

ConversationList

PropTypeDefaultDescription
childrenReactNode—The rows: ConversationList.Item, each alone or in an element that wraps it, such as a ContextMenu. The list knows the last row and the last pinned one for the hairlines under them (across the row under the last pinned one only when the pinned have a ground of their own)
lastSeparatorbooleantrueiOS: the hairline across the row under the last row, as the messenger ends its list; false ends it without, as the system's own lists end
styleStyleProp<ViewStyle>—Style of the list
testIDstring—Test id

ConversationList.Item

PropTypeDefaultDescription
titleReactNode—The conversation's name: a person, a group, a channel. One line, cut short before the time
avatarReactNode—The picture: an Avatar, drawn at the row's size, or any element, cut round. Unset, a gradient Avatar of the title
imageUrlstring—A picture for the Avatar the row draws itself
sourceImageSourcePropType—A picture as an Image source for the Avatar the row draws itself; it wins over imageUrl
messageReactNode—The last message, text or an element such as a photo's mark. iOS keeps two lines for it in every row
authorstring—Who wrote the last message in a group: a line of its own on iOS, before the message on Android
timestring—When the last message came, as the app words it: 9:41, Mon, 12.05.26
unreadCountnumber—The unread messages: a counter at the row's end, the accent's, gray when muted; from a thousand shortened to 1.2K
mutedbooleanfalseA crossed speaker after the name, and a gray counter
pinnedbooleanfalseThe pin at the row's end while nothing is unread
onlinebooleanfalseA green dot at the picture's bottom end, in a ring of the row's ground
typingboolean | string—Someone is typing, in the message's place: the three dots and typing (true), or the words given, as Anna is typing
mediaImageSourcePropType—The photo or the video of the last message: its thumbnail, 18 across, at the start of the message's first line
status"sending" | "sent" | "read" | "failed"—The last message is the reader's own: a clock, one check, two checks or a red mark before the time
onPress() => void—Called by a press on the row
onLongPress() => void—A touch and hold of half a second; a ContextMenu.Trigger around the row sets it
longPressLabelstring—The name a screen reader gives the long press
accessibilityLabelstring—The row's name for a screen reader. Unset: the name, online, the state, the author and the message or who is typing, the time, the unread count, muted and pinned
testIDstring—Test id
unreadTestIDstring—Test id on the unread counter

AvatarStrip

PropTypeDefaultDescription
itemsAvatarStripItem[]—The people, in order; see below
size"lg" | "md" | "sm""lg"The picture: lg 79.33 (a photo app's stories), md 64, sm 52 (a messenger's); the ring, its gap, the item's width and the "+" grow and shrink with it, the name keeps its size
align"start" | "spread""start"start: the items from the strip's start, each next to the last. spread: while they all fit they share the width out evenly, a lone one centered
canvasColorstringthe theme's backgroundThe screen's color under the strip, for the gap round a ring and the rims round a counter and a "+"
accessibilityLabelstring—A name for the strip itself, for a screen reader
styleStyleProp<ViewStyle>—Style of the strip
testIDstring—Test id

AvatarStripItem

PropTypeDefaultDescription
keystring—The item's key in the strip
labelstring—The name under the picture, in one line (or two, with labelLines)
sublabelstring—A second line under the name in the secondary color, as 2d left
labelLines1 | 21The lines the label may take: 2 lets the label of an item with no sublabel wrap onto the second line instead of ending in an ellipsis; the strip keeps that line as a sublabel's
avatarReactNode—The picture: an Avatar, drawn at the strip's size, or any element, cut round
namestringthe labelWhose picture it is: the initial and the gradient of the Avatar the strip draws itself, the reader's own name on their Your story
imageUrlstring—A picture for the Avatar the strip draws itself
sourceImageSourcePropType—A picture as an Image source; it wins over imageUrl
iconComponentType<IconProps>—A symbol half the picture's size in a soft circle in place of a picture: the first tile of a strip
seenboolean—The ring: false while something is still to see (a gradient from green to the accent blue, its ends the theme's --avatar-strip-ring-gradient-start and -end, or the one color of --avatar-strip-ring-unseen), true once all is seen (a gray line). Unset, no ring
disabledbooleanfalseNot available now, as an expired story: the picture at half, the ring as a seen one's, the name in the secondary color; a press still reaches it
countnumber—A counter at the picture's bottom end
addbooleanfalseA "+" at the picture's bottom end: the reader's own item, which adds to it
onPress() => void—Called by a press on the item
onLongPress() => void—A touch and hold
accessibilityLabelstring—The item's name for a screen reader. Unset: the name, the second line, Unavailable or New while unseen, and the count
testIDstring—Test id

CONVERSATION_LIST and AVATAR_STRIP hold the measures.

Tokens

The row's colors: --conversation-title-color, --conversation-message-color, --conversation-author-color, --conversation-time-color, --conversation-check-color, --conversation-check-read-color (the read checks, the checks' color by default), --conversation-clock-color, --conversation-failed-background, --conversation-counter-background, --conversation-counter-color, --conversation-counter-muted-background, --conversation-muted-icon-color, --conversation-pin-color, --conversation-pinned-background, --conversation-press-background, --conversation-pinned-press-background, --conversation-separator-color, --conversation-online-color. Its sizes: --conversation-avatar-size and --conversation-row-height (each with an -android twin), --conversation-content-start. The strip: --avatar-strip-ring-gradient-start and --avatar-strip-ring-gradient-end (the unseen ring's gradient from its bottom left to its top right; the kit's green and its accent by default), --avatar-strip-ring-unseen (one color in its place), --avatar-strip-ring-seen, --avatar-strip-avatar-size-lg, -md and -sm (each size's picture; --avatar-strip-avatar-size stands for lg too), --avatar-strip-spacing and --avatar-strip-inset.