# Timeline — React Native component for Expo

> A vertical timeline whose connector fills down to the current step as dots check off.

Vertical timeline for order tracking, activity feeds, travel logs and release history, in the preview's solid accent colour. Items rise in, then the connector fills down to the current step: done dots draw their check as the line arrives, the current dot pulses, upcoming dots stay hollow on a dotted track, and failures draw a red cross. The scroll variant ties the fill to the scroll position, lighting each node as the line reaches it. Entries can carry photo galleries, tags and links.

- Docs: https://expokit.in/docs/components/timeline
- Tier: Free
- Also called: vertical timeline, order tracking timeline, activity feed
- Category: Display
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit, avatar
- Variants: Order Tracking, Activity, Release, Compact, Support, Journey, Delivery Scroll

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add timeline
```

The CLI copies the source into your project (you own the code) and installs react-native-svg, expo-haptics.

Import: `import { Timeline } from "@/components/ui/timeline";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `TimelineItem[]` | — | { key?, title, description?, time?, status?, icon?, avatar?, image?, images?, tags?, links?, content? } per event. |
| `items[].status` | `"done" \| "current" \| "upcoming" \| "error"` | `"done"` | Filled with a drawn check · pulsing · hollow on a dotted track · red with a drawn ✕. |
| `items[].icon` | `TimelineIconName \| ({ color, size }) => ReactNode` | — | 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). |
| `items[].avatar` | `{ src?, name }` | — | Avatar (initials fallback) instead of a dot. |
| `items[].image` | `string \| { uri, aspectRatio? }` | — | Photo under the text, rounded, fades in when loaded (16:9 by default). |
| `items[].images` | `(string \| { uri, aspectRatio? })[]` | — | Photo gallery: 1-up at its ratio, 2-up side by side, 3-up one large + two stacked (+N for more). Rounded, fades in. |
| `items[].tags` | `string[]` | — | Small accent chips under the text. |
| `items[].links` | `{ label, onPress }[]` | — | Tappable accent links under the text. |
| `items[].content` | `ReactNode` | — | Rich content under the description: a card, quote, tags or buttons. |
| `variant` | `"default" \| "compact" \| "card" \| "scroll"` | `"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` | `theme accent` | Done / current dots and the filled line. |
| `checks` | `boolean` | `true` | Draw a check in done dots. |
| `animated` | `boolean` | `true` | Staggered entrance + connector fill, or the scroll-driven fill (off with reduce motion: everything shows filled). |
| `surface` | `string` | `theme background` | Colour behind the rail — fills hollow dots and mini badge cut-outs. |
| `header` | `ReactNode` | — | scroll: shown above the timeline inside the scroll view. |
| `footer` | `ReactNode` | — | scroll: shown below the timeline inside the scroll view. |
| `contentContainerStyle` | `StyleProp<ViewStyle>` | `{ 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` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## 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.

## FAQ

### How do I make a vertical timeline in React Native?

Use ExpoKit's Timeline: run 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?

Yes. Timeline runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Timeline to my Expo app?

Run 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?

Yes. Timeline is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Timeline looks?

Yes. It takes its colours, radius and light / dark mode from 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.

## More

- Live preview, variants and code: https://expokit.in/docs/components/timeline
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
