Adds 18 AI chat components with optional peers for markdown, streaming, keyboard handling, and masked shimmer text. Also moves WheelPicker to Legend List with value subscriptions, gives Calendar store-backed cells and a template API, adds native digit transitions to NumberStepper, and makes Agenda and year picker accessibility labels replaceable.
HeroUI Native Pro 1.1.0 adds a full set of AI chat components: 18 compound parts for messages, streaming conversations, the prompt composer, attachments, sources, tool calls, reasoning, Markdown, code blocks, and model selection. Each one renders on its own, and together they build a complete chat screen. The release also makes several components faster: WheelPicker renders its rows with Legend List and adds value subscriptions, Calendar and RangeCalendar re-render only the cells that change and take template children instead of render functions, and NumberStepper can roll its digits natively. @legendapp/list is now required for WheelPicker and every component built on it: read the Breaking Changes below before you upgrade.
Follow the installation guide to authenticate the private registry with your HEROUI_PERSONAL_TOKEN, install heroui-native-pro, and wire up HeroUINativeProvider.
Update to the latest version:
npm install heroui-native-pro@latestIf you use WheelPicker, WheelPickerGroup, WheelTimePicker, WheelDateTimePicker, TimePicker, or DateTimePicker, also install @legendapp/list (^3.7.0). ChatConversation.Content needs it too:
npm install @legendapp/listThe AI components work without extra packages and turn on more features when their optional peers are installed. Install the ones you need and rebuild the app, since most of them ship native code:
npm install react-native-enriched-markdown @react-native-masked-view/masked-view react-native-keyboard-controller react-native-streamdown remend| Package | Version | What it adds |
|---|---|---|
@legendapp/list | ^3.7.0 | Required by ChatConversation.Content (and by WheelPicker) |
react-native-keyboard-controller | >=1.21.7 | Keyboard-aware ChatConversation: the composer rides on the keyboard and the list keeps the last message visible |
react-native-enriched-markdown | >=1.1.0 | Native rich text in Markdown and syntax highlighting in CodeBlock. Without it, the source renders as plain text |
react-native-streamdown | >=0.3.0 | StreamMarkdown repairs half-written syntax on a worklet runtime (needs react-native-worklets Bundle Mode) |
remend | >=1.3.0 | StreamMarkdown repair on the JS thread when react-native-streamdown is not installed |
@react-native-masked-view/masked-view | >=0.3.0 | The animated shimmer in TextShimmer, Reasoning, ChatTool, and ChatLoader. Without it, the text renders static |
react-native-numeric-text | >=0.3.1 | Native rolling digits in NumberStepper.Value |
The installation guide now lists every optional peer and the components that use it.
This release introduces 18 new components in a new AI category:
Messages and conversation
Composer
Response content
StreamMarkdown variant for streaming. (Documentation)Agent activity
Primitives
Every AI component has an example screen in the example app, with English, Arabic, and Hebrew copy.
The message list opens at the latest message, follows new content while the user is at the end, and stops following once they scroll away. It resumes when they scroll back. ChatConversation.Empty shows a greeting while there are no messages, ChatConversation.ScrollButton floats above the composer while the list is away from the end, and with react-native-keyboard-controller the composer rides on the keyboard.
Features:
ChatConversation.Content, ChatConversation.Empty, ChatConversation.ScrollButton, and ChatConversation.Composer@legendapp/listitemEntrance)Usage:
import {
ChatConversation,
ChatMessage,
ChatMessageActions,
PromptInput,
StreamMarkdown,
} from "heroui-native-pro";
<ChatConversation>
<ChatConversation.Content
data={messages}
keyExtractor={(message) => message.id}
itemEntrance={(message) => (message.role === "user" ? "send" : "reply")}
estimatedItemSize={120}
renderItem={({ item }) =>
item.role === "user" ? (
<ChatMessage.User>
<ChatMessage.Bubble>
<ChatMessage.Content>{item.text}</ChatMessage.Content>
</ChatMessage.Bubble>
</ChatMessage.User>
) : (
<ChatMessage.Assistant>
<ChatMessage.Avatar alt="Assistant" fallback="AI" />
<ChatMessage.Body>
<ChatMessage.Content>
<StreamMarkdown isStreaming={item.isStreaming}>{item.text}</StreamMarkdown>
</ChatMessage.Content>
<ChatMessageActions>
<ChatMessageActions.Copy />
<ChatMessageActions.Regenerate />
</ChatMessageActions>
</ChatMessage.Body>
</ChatMessage.Assistant>
)
}
/>
<ChatConversation.ScrollButton />
<ChatConversation.Composer className="pb-safe-offset-3">
<PromptInput value={value} status={status} onValueChange={setValue} onSubmit={send} onStop={stop}>
<PromptInput.Shell>
<PromptInput.Content>
<PromptInput.TextArea />
</PromptInput.Content>
<PromptInput.Toolbar>
<PromptInput.ToolbarEnd>
<PromptInput.Send />
</PromptInput.ToolbarEnd>
</PromptInput.Toolbar>
</PromptInput.Shell>
</PromptInput>
</ChatConversation.Composer>
</ChatConversation>;For complete documentation and examples, see the ChatConversation component page and the ChatMessage component page.
A composer whose field starts at one line and grows to maxHeight. Attachments sit above the field, toolbar actions flank or sit under it, and the send button reflects the status with an up arrow, a spinner, a stop square, or an x mark.
Features:
PromptInput.Shell, PromptInput.Content, PromptInput.Attachments, PromptInput.TextArea, PromptInput.Toolbar, PromptInput.Action, PromptInput.Send, PromptInput.Footer, and morePromptInput.SlashMenu) shown while the text starts with /Usage:
import { PromptInput } from "heroui-native-pro";
const [value, setValue] = useState("");
<PromptInput
value={value}
onValueChange={setValue}
onSubmit={(text) => {
send(text);
setValue("");
}}
>
<PromptInput.Shell>
<PromptInput.Content>
<PromptInput.TextArea placeholder="Chat with AI" />
</PromptInput.Content>
<PromptInput.Toolbar>
<PromptInput.ToolbarStart>
<PromptInput.Action accessibilityLabel="Add to chat" onPress={openAttachSheet}>
<PaperClipIcon />
</PromptInput.Action>
</PromptInput.ToolbarStart>
<PromptInput.ToolbarEnd>
<PromptInput.Send />
</PromptInput.ToolbarEnd>
</PromptInput.Toolbar>
</PromptInput.Shell>
<PromptInput.Footer>AI can make mistakes. Check important info.</PromptInput.Footer>
</PromptInput>;For complete documentation and examples, see the PromptInput component page.
Renders AI responses as native rich text through react-native-enriched-markdown, with GitHub Flavored Markdown on by default: headings, lists, links, code, blockquotes and alerts, tables, task lists, images, and math. StreamMarkdown can repair half-written syntax while a response streams, and fenced code blocks are syntax-highlighted.
Usage:
import { ChatMessage, Markdown } from "heroui-native-pro";
<ChatMessage.Assistant>
<ChatMessage.Avatar alt="Assistant" fallback="AI" />
<ChatMessage.Body>
<ChatMessage.Content>
<Markdown>{response}</Markdown>
</ChatMessage.Content>
</ChatMessage.Body>
</ChatMessage.Assistant>;For complete documentation and examples, see the Markdown component page and the CodeBlock component page.
A collapsible "thinking" block. While streaming it shows a loader and a shimmering "Thinking" label, then reports how long the run took and collapses.
Usage:
import { Reasoning } from "heroui-native-pro";
<Reasoning duration="9s">
<Reasoning.Trigger />
<Reasoning.Content>
<Reasoning.Text>{reasoningText}</Reasoning.Text>
</Reasoning.Content>
</Reasoning>;For complete documentation and examples, see the Reasoning component page and the ChainOfThought component page.
A bordered card for one tool call. Its border and status icon follow state, the input and output render as collapsible JSON code blocks, and the requires-action state shows approve and reject buttons. ChatToolGroup groups consecutive calls.
Usage:
import { ChatTool } from "heroui-native-pro";
<ChatTool
state="output-available"
toolName="getWeather"
triggerPrefix="Used tool: "
duration="0.8s"
input={{ city: "Paris" }}
output={{ summary: "18°C, partly cloudy" }}
/>;For complete documentation and examples, see the ChatTool component page.
Asks an agent's clarifying questions one at a time. Each question picks one option, several options, or a custom answer, and the card springs to the height of each new question. Progress dots, Skip, and Continue sit in the footer.
Usage:
import { ApprovalCard, type ApprovalCardQuestion } from "heroui-native-pro";
const questions: ApprovalCardQuestion[] = [
{
id: "method",
title: "How should users sign in?",
options: [
{ id: "passkeys", label: "Passkeys", description: "Face ID or Touch ID, no passwords" },
{ id: "magic-link", label: "Magic link", description: "A one-time link sent to their inbox" },
],
},
{
id: "pages",
title: "Which pages need sign-in?",
selectionMode: "multiple",
options: [
{ id: "dashboard", label: "Dashboard" },
{ id: "settings", label: "Settings" },
],
},
];
<ApprovalCard
questions={questions}
onSubmit={({ answers, skipped }) => sendToolOutput({ answers, skipped })}
onDismiss={cancelToolCall}
/>;For complete documentation and examples, see the ApprovalCard component page.
WheelPicker rows now render with @legendapp/list, so the first frame includes the rows around the selection (on Android the rows above it could be blank before). Values live in an internal store: a value change re-renders only the previous and the next selected row, not the picker, the list, or the other wheels in a group. Rows that collapsed when classNames.contentContainer set alignItems render at full width again.
New API to read values without re-rendering:
WheelPicker ref: getValue() and subscribe({ callback }), which returns an unsubscribe function.WheelPickerGroup ref: getValues() and subscribe({ name?, callback }). Pass name (a string or an array) to observe only some wheels.useWheelPickerGroupValue(name): reads one wheel's value; only the calling component re-renders when it changes.useWheelPickerGroupSubscription({ name?, callback }): the hook form of subscribe for parts rendered inside the group.useWheelPicker() also returns the selectedIndex and isUserScrolling shared values for UI-thread reactions.recycleItems (default true): reuse row components while scrolling. Set it to false when a custom renderItem keeps its own state.const groupRef = useRef<WheelPickerGroupRootRef>(null);
useEffect(() => {
const unsubscribe = groupRef.current?.subscribe({
name: "amount",
callback: ({ values }) => analytics.track("amount", values),
});
return () => {
unsubscribe?.();
};
}, []);See the WheelPicker and WheelPickerGroup component pages.
Calendar and RangeCalendar keep their state in one store per root. Selecting a day re-renders only the cells whose state changed (usually two), and Previous / Next updates the month in one commit. Month grids and date formatters are cached.
GridHeader, GridBody, and YearPickerGridBody now take a template element instead of a render function. Without children they render the default cell. Custom content reads its state with useCalendarCell(), useCalendarHeaderCell(), useYearPickerCell(), and useYearPickerTrigger():
import { Calendar, useCalendarCell } from "heroui-native-pro";
function EventIndicator() {
const { date } = useCalendarCell();
return datesWithEvents.includes(date.day) ? <Calendar.CellIndicator /> : null;
}
<Calendar accessibilityLabel="Event date">
<Calendar.Header>
<Calendar.Heading />
<Calendar.NavButton slot="previous" />
<Calendar.NavButton slot="next" />
</Calendar.Header>
<Calendar.Grid>
<Calendar.GridHeader>
<Calendar.HeaderCell />
</Calendar.GridHeader>
<Calendar.GridBody>
<Calendar.Cell>
<Calendar.CellLabel />
<EventIndicator />
</Calendar.Cell>
</Calendar.GridBody>
</Calendar.Grid>
</Calendar>;The render-function forms still work but are deprecated (see Deprecations below). See the Calendar and RangeCalendar component pages; the DatePicker and DateRangePicker examples use the new form.
When the optional react-native-numeric-text (>=0.3.1, New Architecture) is installed and NumberStepper.Value has no custom children, the value renders as a native NumericText whose digits roll in the step direction (SwiftUI numericText on iOS 17+, its own renderer on Android). Without the package, or with custom children, the keyframe animation is unchanged. The value also moved into a store, so a step re-renders only the value and, when its min/max state flips, a button.
npm install react-native-numeric-textSee the NumberStepper component page.
The Segment track, the NumberStepper pill, and secondary RadioButtonGroup items now paint with a new fill color, --color-fill: var(--fill, var(--default)). A translucent fill keeps the same contrast on the page background and on a surface card. With heroui-native 1.1.1, which has no --fill yet, it resolves to --default and nothing changes visually; once heroui-native defines --fill, these insets follow it with no Pro update. See Colors.
Labels that were English literals can now be localized:
| Part | Prop | Default |
|---|---|---|
Agenda.TodayButton | todayLabel | "Go to today" |
Agenda.WeekHeader, Agenda.MonthGrid | dayLabel(date) | The date in full, in the agenda's locale ("Wednesday, May 12, 2027") |
Agenda.MonthGrid | moreEventsLabel(count) | (count) => `${count} more events` |
Calendar.YearPickerTrigger, RangeCalendar.YearPickerTrigger | yearSelectorLabel(monthYear) | (monthYear) => `${monthYear}, year selector` |
The only default that changes is the spoken label of an Agenda month day cell: it reads the formatted date instead of Select 2027-05-12. See the Agenda component page.
onChange(null) (#142).isValueInvalid follows a new isDateUnavailable, "today" moves after midnight, and a new isDateUnavailable or allowsNonContiguousRanges re-bounds the current range (#142).gregorian while @internationalized/date uses gregory (#142).ChartTooltipLabel format and useChartSelectedLabel are now called with category x values ("Jan") as well as numbers. The new ChartLabelFormatter type is (value: number | string) => string; formatters typed (value: number) => string still compile (#144).default variant's fill (the hold sweep and the trail behind the thumb) is raised from 5% to 15% so it is visible in light and dark mode (#141).placement offsets apply only inside Badge.Anchor. A badge used on its own lays out inline, for example as an unread count in a list row (#146).@legendapp/list (^3.7.0), @react-native-masked-view/masked-view (>=0.3.0), react-native-enriched-markdown (>=1.1.0), react-native-keyboard-controller (>=1.21.7), react-native-numeric-text (>=0.3.1), react-native-streamdown (>=0.3.0), and remend (>=1.3.0) as optional peers. The heroui-native peer stays ^1.1.1.The render-function children of Calendar and RangeCalendar still work but are deprecated and no longer documented. Move to the template form:
| Deprecated | Use instead |
|---|---|
GridHeader children {(day) => <Calendar.HeaderCell day={day} />} | <Calendar.HeaderCell />, or no children |
GridBody children {(date) => <Calendar.Cell date={date} />} | <Calendar.Cell />, or no children |
YearPickerGridBody render function | <Calendar.YearPickerCell />, or no children |
Calendar.Cell render function with Calendar.CellBody | Children of Calendar.Cell; style the body with classNames.body, styles.body, and animation on the cell |
cellRenderProps on CellBody, CellLabel, and CellIndicator | Nothing: the parts read the state of their cell. Use useCalendarCell() in your own components |
day on HeaderCell | Nothing: the cell reads its weekday. Use useCalendarHeaderCell() in custom content |
@legendapp/list is required for wheel pickersWheelPicker renders its rows with @legendapp/list and throws at render time when the package is missing. Install @legendapp/list (^3.7.0) if you use WheelPicker, WheelPickerGroup, WheelTimePicker, WheelDateTimePicker, TimePicker, or DateTimePicker:
npm install @legendapp/listComponent props and existing ref methods are unchanged.