Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { AnimatedText } from "@/components/ui/text-animation";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| children The text to animate. | string | — |
| variant Which effect to play. | "reveal" | "shimmer" | "cascade" | "scramble" | "typewriter" | "reveal" |
| trigger Animate once on mount, or also every time the text changes. A typewriter keeps typing when the new text extends the old (streaming). | "mount" | "change" | "change" for cascade / typewriter, else "mount" |
| delay ms before the first animation. | number | 0 |
| stagger ms between words (reveal) or letters. Shimmer: ms of sweep per letter. | number | 70 reveal · 80 shimmer · 28 cascade · 45 scramble · 32 typewriter |
| speed Speed multiplier: 2 plays twice as fast. | number | 1 |
| color Text colour. | string | theme foreground |
| caret Blinking caret for the typewriter. | boolean | true |
| replayKey Change it to replay the animation. | string | number | — |
| onComplete Called when an animation finishes (not for the looping shimmer). | () => void | — |
| textStyle fontSize, fontWeight, lineHeight, letterSpacing, textAlign… for every letter. | StyleProp<TextStyle> | — |
| style Style for the root view. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
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=… — "reveal" | "shimmer" | "cascade" | "scramble" | "typewriter".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "reveal" | "shimmer" | "cascade" | "scramble" | "typewriter" · default "reveal"Which effect to play.
- color
- string · default theme foregroundText colour.
- textStyle
- StyleProp<TextStyle>fontSize, fontWeight, lineHeight, letterSpacing, textAlign… for every letter.
- style
- StyleProp<ViewStyle>Style for the root view.
- 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.
Behaviour & accessibility
- Motion
- Reveal, shimmer and cascade run one native-driver clock per animation with spring curves pre-sampled into interpolations; scramble and typewriter use a light JS timer. Text wraps by word.
- Reduced motion
- Shows the final text immediately; shimmer stays static and the typewriter caret is hidden.
- Screen readers
- The whole string is one text element; the per-letter views are hidden. Cascade and typewriter announce new text when it changes (typewriter once streaming settles).
- Platforms
- iOS, Android and web. Arabic, Hebrew, Indic, Thai and other connected scripts animate a word at a time so shaping is never broken; right-to-left text flows from the right.
Source
FAQ
How do I make a typewriter effect in React Native?
npx @expokit/cli@latest add text-animation in your Expo or React Native project and it copies a ready-made typewriter effect into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Text Animation work in Expo Go?
How do I add Text Animation to my Expo app?
npx @expokit/cli@latest add text-animation in your project. The CLI copies the component's source into your app, so the code is yours to change.Is Text Animation free?
Can I change how Text Animation looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.