Now In Code
Get access

AI Chat Typing and Streaming Flow

The home mascot scales up as a shared element into an AI agent screen where the title blurs in word by word. A typed message flies in as a bubble, typing dots morph into the reply, and streamed text and product images reveal in turn.

Inspired by a design by @kitesdesign on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "ai-chat-typing-and-streaming-flow" to this project.

The full source is attached at the end of this prompt. Put the files under components/ai-chat-typing-and-streaming-flow/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
6 Oct 2026
License
Unlimited commercial projects
Original design
@kitesdesign on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A health app in three screens that loop. Home shows a green gauge arc with a striped tail, cards and a tab bar, with an AI button. Pressing the button hides the home content and the robot mascot grows into its place on the Agent page, where it floats and blinks. Six title words rise in from blur, an input panel slides up from the bottom and suggestion chips slide in. A message types in character by character, and sending it makes the bubble fly into place behind the mascot, which shrinks to become the assistant avatar. The header flips from AI Agent to AI Chat. A typing indicator waves, the reply streams in word by word out of blur, and a second exchange adds an expanding card with three product images that sharpen one after another.

How it's built

A single timeline function returns the state of every element at a given time, shared between the web preview and the React Native component. The mascot is drawn as SVG with react-native-svg and travels between screens as a shared element, scaling with a small overshoot. Typing is driven by a per-character timing table, so keystrokes are uneven. React Native lacks a text blur, so text blur is two stacked Text layers that cross-fade, and image blur uses the Image blurRadius prop. Fonts come from an Expo Google Fonts package, icon paths come from an open icon set and a requestAnimationFrame loop supplies time. Chat libraries were considered and not used.

Good for

  • AI assistant onboarding that moves a mascot from a home screen into a chat
  • Streaming-style replies that fade in word by word
  • Health, wellness and coaching apps with a conversational entry point

Dependencies

react-native-svg@expo-google-fonts/figtreereact-native

Tags

AI AssistantButtonCardChat UICompanion and WellbeingFly In / Fly OutGradientHealth and FitnessLight ModeLoading AnimationMascotMinimalMorphingNavigation BarScreen TransitionSkeuomorphic 3DSocialStaggered EntranceText AnimationText Input

Related