React Native Chat for Expo

An AI assistant chat screen: replies stream in word by word with a soft fade and a blinking caret, a shimmering “Thinking…” waits for the first token, and the send button morphs into Stop. Light markdown (bold, inline code, lists, scrollable code blocks), suggestion chips, copy / regenerate / thumbs actions and a prompt field that grows to five lines and stays above the keyboard.

Also known as: chat screen, AI chat UI, messaging screen, chatbot UI.

Pro
9:41

Customization

You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.

Design theme

Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).

Variants

Pick the Variants chip above the preview, or set variant=… — 'plain' | 'bubbles'.

Style props

React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).

variant
'plain' | 'bubbles' · default 'plain'plain: assistant text sits on the page. bubbles: assistant replies in muted bubbles too (support bots).
accent
string · default theme accentUser bubbles, send button, focus ring and the assistant mark.
style
StyleProp<ViewStyle>Root style.
className
stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.

Props

PropTypeDefault
messages

The conversation. Controlled when onSend is set; otherwise the starting messages for the built-in simulation.

{ id, role: 'user' | 'assistant', text, streaming?, feedback? }[][]
onSend

The user sent a prompt (trimmed). Append it and the reply to messages yourself. Without it, replies are simulated from a canned list so the screen works as-is.

(text: string) => void—
streaming

A reply is in flight: “Thinking…” until the last message is an assistant one with text, a caret while it grows, and Send becomes Stop.

booleanfalse
onStop

Stop pressed while streaming.

() => void—
suggestions

Chips above the input until the user sends something; tapping one sends it. [] hides them.

string[]4 prompts
assistantName

Used in the header, the placeholder and screen reader labels.

string'Assistant'
title / subtitle

Header text. The subtitle shows “Thinking…” / “Typing…” while streaming.

stringassistantName / 'Ask me anything'
header

Replace the header; null hides it.

ReactNode | nullbuilt-in
avatar

Replace the assistant mark beside replies, in the header and the empty state.

ReactNodesparkle mark
emptyTitle / emptySubtitle

Empty state copy.

string'How can I help today?'
placeholder

Prompt placeholder and accessibility label.

string`Message ${assistantName}`
variant

plain: assistant text sits on the page. bubbles: assistant replies in muted bubbles too (support bots).

'plain' | 'bubbles''plain'
thinkingIndicator

What shows before the first token.

'shimmer' | 'dots''shimmer'
onAttach

Shows a + button left of the input.

() => void—
onCopy

Copy pressed or a message long-pressed — write message.text to the clipboard here. The icon turns into a check.

(message) => void—
onRegenerate

Regenerate pressed on the latest reply.

(message) => void—
onFeedback

Thumbs toggled; null when cleared. Initial state comes from message.feedback.

(message, 'up' | 'down' | null) => void—
onNewChat

Shows a new-chat button in the header (the simulation also clears itself).

() => void—
bottomInset

Extra padding under the input, e.g. useSafeAreaInsets().bottom. Ignored while the keyboard is open.

number0
keyboardVerticalOffset

Height above the screen (navigator header) so the input clears the keyboard exactly.

number0
haptics

Light haptics on send, stop, copy and feedback.

booleantrue
accent

User bubbles, send button, focus ring and the assistant mark.

stringtheme accent
style

Root style.

StyleProp<ViewStyle>—
className

Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

string—

FAQ

How do I make a chat screen in React Native?
Use ExpoKit's Chat, a Pro screen: with ExpoKit Pro, the ExpoKit CLI copies a ready-made chat screen into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Chat work in Expo Go?
Yes. Chat runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.
How do I add Chat to my Expo app?
With ExpoKit Pro, add it with the ExpoKit CLI: it copies the screen's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.
Is Chat free?
Chat is part of ExpoKit Pro. With a Pro plan, log the CLI in once (npx @expokit/cli@latest login) and it installs the full source into your app.
Can I change how Chat looks?
Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit screen. The code lives in your project, so you can also edit anything directly.