AI Chat
Chat with an assistant that streams its answer and builds a plan for a sunrise hike, its timeline drawing through each stop. Posting the plan to your group highlights the sunrise moment.
About the AI Chat screen
Messaging screens for React Native: inbox, threads, groups, media and AI assistants. Built for long scrolling lists, a composer that stays above the keyboard and messages that arrive while you read. This is one of 12 chat screens.
How it behaves
It responds to taps and scrolling. On a phone you feel a light tap on buttons, a selection tick when you switch an option, a firmer tap on bigger actions and a success pulse when the task completes.
- Has an empty state for when there's nothing to show yet.
- Keeps fields and actions above the on-screen keyboard.
- The header reacts to scrolling instead of sitting on top of the content.
- Long lists are virtualised, so they stay smooth with real data.
- Respects Reduce Motion: movement drops out and the feedback stays.
Make it yours
npx @lumioui/cli add pro/chat-ai copies the screen into screens/chat/ai.tsx along with the 5 components it uses, so the source is yours to edit.
It's shown here in the green accent: wrap it in a different <Accent> to recolour every button, highlight and chart at once. It follows light and dark mode, and runs on iOS and Android, including Expo Go.
Built from
- Context MenuLong-press menu that lifts the pressed item above a dimmed backdrop and opens a list of actions below or above it. Your choice is applied to the item as it settles back into place.
- IconIcon set drawn on one consistent grid, sized and coloured from your theme. The heart, star and bookmark can fill in place inside their outline, then fade back out.
- Keyboard AvoidingContainer that lifts your content above the on-screen keyboard on iOS, so fields and message bars never end up hidden behind it. On Android it leaves this to the system’s own resizing.
- Streaming TextAI reply that appears word by word as it streams in, with the newest words softly highlighted. Screen readers hear the full answer once instead of every fragment.
- TextThemed type scale from caption to display that follows light and dark mode. Includes a pull-quote style with an accent rule and a quieter dimmed tone for secondary text.