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.
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
| Prop | Type | Default |
|---|---|---|
| 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. | boolean | false |
| 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. | string | assistantName / 'Ask me anything' |
| header Replace the header; null hides it. | ReactNode | null | built-in |
| avatar Replace the assistant mark beside replies, in the header and the empty state. | ReactNode | sparkle 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. | number | 0 |
| keyboardVerticalOffset Height above the screen (navigator header) so the input clears the keyboard exactly. | number | 0 |
| haptics Light haptics on send, stop, copy and feedback. | boolean | true |
| accent User bubbles, send button, focus ring and the assistant mark. | string | theme 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?
Does Chat work in Expo Go?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Chat to my Expo app?
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?
npx @expokit/cli@latest login) and it installs the full source into your app.Can I change how Chat looks?
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.