Kinetik UI

Timeline

.md

Events along a rail: each node pops in turn, the line draws down to the next, and the text rises in beside it.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add timeline

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/timeline.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/timeline.tsx
    View source files

Usage

import { Timeline } from '@/components/kinetik/timeline';

<Timeline
  events={[
    { key: 'placed', title: 'Order placed', time: 'Mon 09:12' },
    { key: 'packed', title: 'Packed', time: 'Mon 16:40', description: 'Two prints and a frame.' },
    { key: 'transit', title: 'On its way', time: 'Today', state: 'current' },
    { key: 'delivered', title: 'Delivered', time: 'Thu', state: 'upcoming' },
  ]}
/>;

Events are drawn in the order given. state sets the node: done (the default) is solid, current is blue with a soft ring, upcoming is hollow.

When to use

  • The history of one thing: an order, a ticket, a trip, a document's versions.
  • Short sequences, up to about a dozen events, read from top to bottom.

When not to use

  • Long activity feeds. Use a list grouped by day.
  • Steps people complete themselves. Use Step Tracker.

Notes

  • time is shown as given, so format it the way your app formats dates.
  • children adds content under an event, such as a thumbnail or a button; it keeps its own touch targets.
  • The entrance plays once; pass a new playKey to replay it.
  • With reduced motion every event is in place from the start.

Props

TimelineProps

PropTypeDefaultDescription
eventsrequiredreadonly TimelineEvent[]—
playKeystring | number—Replays the entrance when it changes.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Plain views with three shared values per event, played once on mount. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.90× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 147 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Every event is in place from the start.
Screen readers
Each event is one element that reads its time, title, description and whether it is happening now or coming up.
Touch target
Not interactive itself; content passed as children keeps its own targets.

Source files

components/kinetik/timeline.tsx is in the Code tab of the preview above.