Kinetik UI

Chat Thread

.md

Grouped chat bubbles: new messages rise in from their side, typing dots wave and Seen fades in.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add chat-thread

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/chat-thread.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/chat-thread.tsx
    View source files

Usage

import { ChatThread } from '@/components/kinetik/chat-thread';

<ScrollView>
  <ChatThread messages={messages} typing={otherIsTyping} seen={read} name="Maya" />
</ScrollView>;

When to use

  • Conversations between two people: support chats, messages, comments on an order.
  • Assistant replies in a chat layout.

When not to use

  • Long threaded discussions with replies and reactions. Use a comment list.
  • A single notification. Use a toast or Notice Bar.

Notes

  • Consecutive messages from one side form a group: tucked corners on the sender's side, a tail on the last one, and the time under it.
  • Messages added after mount rise in from their side; the ones there at mount appear still.
  • The thread is a polite live region, and every bubble reads its sender, text and time. Typing reads as "Maya is typing".
  • Put it in your own ScrollView (or an inverted list for long threads).

Props

ChatThreadProps

PropTypeDefaultDescription
messagesrequiredreadonly ChatMessage[]—
typingbooleanfalseShows three bouncing dots from the other side.
seenbooleanfalseShows "Seen" under your last message.
namestring'Them'The other person's name, for screen readers. Defaults to "Them".
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Plain views; each new bubble runs one spring when it arrives. Only the typing dots loop, and only while shown.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.94× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 140 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
New messages appear without rising and the typing dots hold still.
Screen readers
A polite live region; each bubble reads the sender, the text and the time.
Touch target
Not interactive.

Source files

components/kinetik/chat-thread.tsx is in the Code tab of the preview above.