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 { Timeline } from "@/components/ui/timeline";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 |
|---|---|---|
| items { key?, title, description?, time?, status?, icon?, avatar?, image?, images?, tags?, links?, content? } per event. | TimelineItem[] | — |
| items[].status Filled with a drawn check · pulsing · hollow on a dotted track · red with a drawn ✕. | "done" | "current" | "upcoming" | "error" | "done" |
| items[].icon cart, package, truck, home, rocket, bug, star, chat, tag, user, or your own glyph in a larger dot (done/failed get a mini check/✕ badge). | TimelineIconName | ({ color, size }) => ReactNode | — |
| items[].avatar Avatar (initials fallback) instead of a dot. | { src?, name } | — |
| items[].image Photo under the text, rounded, fades in when loaded (16:9 by default). | string | { uri, aspectRatio? } | — |
| items[].images Photo gallery: 1-up at its ratio, 2-up side by side, 3-up one large + two stacked (+N for more). Rounded, fades in. | (string | { uri, aspectRatio? })[] | — |
| items[].tags Small accent chips under the text. | string[] | — |
| items[].links Tappable accent links under the text. | { label, onPress }[] | — |
| items[].content Rich content under the description: a card, quote, tags or buttons. | ReactNode | — |
| variant Roomy rows · small dots on one line · each event on a card (current one tinted) · renders its own scroll view and fills the line as you scroll (give it a height). | "default" | "compact" | "card" | "scroll" | "default" |
| accent Done / current dots and the filled line. | string | theme accent |
| checks Draw a check in done dots. | boolean | true |
| animated Staggered entrance + connector fill, or the scroll-driven fill (off with reduce motion: everything shows filled). | boolean | true |
| surface Colour behind the rail — fills hollow dots and mini badge cut-outs. | string | theme background |
| header scroll: shown above the timeline inside the scroll view. | ReactNode | — |
| footer scroll: shown below the timeline inside the scroll view. | ReactNode | — |
| contentContainerStyle scroll: the scroll view's content container. | StyleProp<ViewStyle> | { paddingVertical: 12 } |
| style Root style — for variant="scroll" this is the scroll view, so set a height. | 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=… — "default" | "compact" | "card" | "scroll".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "default" | "compact" | "card" | "scroll" · default "default"Roomy rows · small dots on one line · each event on a card (current one tinted) · renders its own scroll view and fills the line as you scroll (give it a height).
- accent
- string · default theme accentDone / current dots and the filled line.
- surface
- string · default theme backgroundColour behind the rail — fills hollow dots and mini badge cut-outs.
- contentContainerStyle
- StyleProp<ViewStyle> · default { paddingVertical: 12 }scroll: the scroll view's content container.
- style
- StyleProp<ViewStyle>Root style — for variant="scroll" this is the scroll view, so set a height.
- 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
- Items rise in, then the line fills to the current step: done dots draw their check as it arrives and the current dot pulses. The scroll variant ties the fill to the scroll position.
- Reduced motion
- Everything renders in its final state with no rise, fill or pulse, the same as animated={false}.
- Screen readers
- The timeline is a list; each entry is read as its title, time, description and status, and links are exposed as links.
Source
FAQ
How do I make a vertical timeline in React Native?
npx @expokit/cli@latest add timeline in your Expo or React Native project and it copies a ready-made vertical timeline into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Timeline work in Expo Go?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Timeline to my Expo app?
npx @expokit/cli@latest add timeline in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.Is Timeline free?
Can I change how Timeline 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.