Command palette

@yasinsensoy/native

React Native · Components

Timeline

Shows events or steps in time order along a line: activity feeds, order/shipping tracking, change history, process steps.

13 exports

Live example

The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.

Preview

Today

  1. Ayşe Yılmaz released version 2.4.0
    The release notes were sent to everyone on the team.
  2. Mehmet Kaya left a comment
    “The back button closes the Dialog on mobile, great!”
    I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
  3. Build failed
    tests/e2e/dialog.spec.ts › 3 tests

Yesterday

  1. Zeynep Demir joined the project
  2. 12 components, 3 new icons

Thursday, October 22

  1. Project created

Code

import { Timeline } from "@yasinsensoy/native";

<Timeline groupBy="day" collapsible
  items={[
    { title: "Order received", time: "2026-10-28T10:12", status: "done", icon: "check" },
    { title: "Out for delivery", description: "The courier will deliver today.", status: "active" },
    { title: "Delivered", status: "pending" },
  ]}
/>

Events

  1. Events appear here when you interact with the preview.

Order tracking: icon markers, statuses

  1. Order received (Done)
  2. Payment confirmed (Done)
  3. Shipped (Done)
    Aras Kargo · Tracking no. 1234 5678 90
  4. Out for delivery (Current step)
    The courier will deliver by 18:00 today.
  5. Delivered (Pending)

Horizontal steps (marker=number), the current step is centered

  1. Account (Done)
    Email and password
  2. Profile (Done)
    Name, photo
  3. Team (Current step)
    Invite your friends
  4. Payment (Pending)
    Pick a plan
  5. Done (Pending)

Roadmap: cards spread to both sides

  1. October 2026
    Infrastructure (Done)
    Monorepo, theme, utilities.
  2. November 2026
    Core components (Done)
    Form, overlays, navigation.
  3. December 2026
    Data components (Current step)
    DataGrid, TreeView, Chart, Timeline.
    DataGridTreeViewTimeline
  4. January 2027
    AI skill and 1.0 (Pending)
    Catalog refresh, stable release.

Change history: times on the left (timePosition=opposite)

Today

  1. Ayşe Yılmaz released version 2.4.0
    The release notes were sent to everyone on the team.
  2. Mehmet Kaya left a comment
    “The back button closes the Dialog on mobile, great!”
    I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
  3. Build failed
    tests/e2e/dialog.spec.ts › 3 tests

Yesterday

  1. Zeynep Demir joined the project
  2. 12 components, 3 new icons

Thursday, October 22

  1. Project created

Chat-like feed: the side is fixed with side, opposite content

  1. Customer
    Support ticket opened
  2. Support
    Ticket taken into review
  3. More info requested
    Could you share the order number?
  4. Order no: #7012
  5. Resolved (Done)

Long feed: maxVisible={3}, placeholders at the end (loading)

  1. Ayşe Yılmaz released version 2.4.0
    The release notes were sent to everyone on the team.
  2. Mehmet Kaya left a comment
    “The back button closes the Dialog on mobile, great!”
    I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
  3. Build failed
    tests/e2e/dialog.spec.ts › 3 tests
Show 3 more

Ongoing process: a dashed tail after the last item (line), empty state

  1. Draft (Done)
  2. In review (Current step)
No activity on this order yet.

Import

import { Timeline } from "@yasinsensoy/native";

Timeline

component

Shows events or steps in time order along a line: activity feeds, order/shipping tracking, change history, process steps. Date formatting, grouping and sorting use the same calculations as web (@yasinsensoy/core/timeline). Dashed lines are drawn in segments so they look the same on iOS and Android.

Timeline({ items: rawItems, orientation, align, timePosition: timePositionProp, marker, variant: variantProp, effect, size, groupBy, groupLabel, collapsibleGroups, sort, timeFormat, locale: localeProp, timeZone, now: nowProp, collapsible, maxVisible, loading, empty, responsive, oppositeWidth, itemWidth, labels: labelsProp, "aria-label": ariaLabel, style, }: TimelineProps<T>): JSX.Element

Examples

<Timeline marker="icon" items={[
  { title: "Order received", time: "2026-10-28T10:12", status: "done" },
  { title: "Shipped", description: "Courier · 1234567", status: "active" },
  { title: "Delivered", status: "pending" },
]} />
<Timeline groupBy="day" sort="desc" timeFormat="relative" items={events} />

Values accepted as dates: Date, an ISO string or milliseconds.

type TimelineDate = Date | string | number

Progress state of an entry (same as web): done, current step, pending.

type TimelineStatus = "done" | "active" | "pending"

Interval by which items are grouped.

  • "day": by day ("Today", "Yesterday", "Monday, October 12, 2026").
  • "month": by month ("October 2026").
  • "year": by year ("2026").
  • Function: returns the item's group key (e.g. (item) => item.project). The key itself is shown as the title; change it with groupLabel.
type TimelineGroupBy = "day" | "month" | "year" | ((item: T) => string)

Appearance: frameless or each entry in a card.

type TimelineVariant = "plain" | "card"

Style of the line after an entry.

type TimelineLine = "solid" | "dashed" | "dotted" | "none"

Placement of content relative to the line: start, end or alternating sides.

type TimelineAlign = "start" | "end" | "alternate"

Position of the time: at the end of the title, above it or opposite the line.

type TimelineTimePosition = "end" | "top" | "opposite"

Default marker style: a dot, an icon in a circle or a sequence number.

type TimelineMarker = "dot" | "icon" | "number"

TimelineItem

interface

An entry in the timeline (same fields as web; onPress instead of href).

NameTypeDefaultDescription
id?string | numberits indexStable key.
titleReactNodeTitle.
description?ReactNodeShort description under the title.
content?ReactNodeExtra content (image, quote, list); collapses when collapsible.
time?TimelineDateTime of the entry: Date, ISO text or milliseconds.
timeLabel?ReactNodeText shown instead of the time (e.g. "Q2").
opposite?ReactNodeContent on the opposite side of the line.
icon?IconPropIcon in the marker.
marker?ReactNodeA fully custom element instead of the marker (e.g. <Avatar />).
tone?Tone"primary"` if there is a status, otherwise `"neutral"Marker and line color.
status?TimelineStatusProgress state. See TimelineStatus.
onPress?() => voidCalled when the title is tapped (counterpart of href on web).
actions?ReactNodeActions at the end of the title row.
collapsible?booleanShould the content toggle when the title is tapped?
defaultOpen?booleanShould collapsible content start open?
line?TimelineLine"dashed"` if the status is `pending`, otherwise `"solid"The line after this entry.
side?"start" | "end"Side of the entry when align="alternate".

Date format: Intl options or "relative" (relative: "3 hours ago").

type TimelineTimeFormat = Intl.DateTimeFormatOptions | "relative"

Timeline texts (same as web).

NameTypeDescription
emptystringWhen there are no entries.
loadingstringLoading.
donestring"Completed" status (screen reader).
activestring"Current step" status.
pendingstring"Pending" status.
showMorestringButton that reveals hidden entries; {count} is replaced with the number.
showLessstringButton that hides the entries again.
groupCountstringCount in a collapsible group header; {count}.

TimelineProps

interface

Timeline props (same names as web).

NameTypeDefaultDescription
itemsreadonly T[]Entries. Drawn in the given order; use sort to sort by date.
orientation?"vertical" | "horizontal""vertical"Orientation. A horizontal timeline scrolls with a finger.
align?TimelineAlign"start"Position of the content relative to the line.
timePosition?TimelineTimePosition"end"` vertically; `"opposite"` with `alternate` or horizontally.Position of the time.
marker?TimelineMarker"dot"Default marker style.
variant?TimelineVariant | (string & {})"plain"Appearance.
effect?EffectPropEffect of the items ("lift", "glow", "ripple"…); stays on for the active item. Defaults to appearance.defaults.timeline.effect. See BuiltinEffect.
size?Size"md"Size.
groupBy?TimelineGroupBy<T>Grouping: "day", "month", "year" or a function returning a key. Vertical only.
groupLabel?(key: string, date: Date | undefined) => ReactNodeCustomizes the group header.
collapsibleGroups?boolean | readonly string[]Groups toggle when their header is tapped; with an array only those keys start open.
sort?"asc" | "desc"Sorting by date.
timeFormat?TimelineTimeFormat | ((date: Date) => ReactNode)Time format: Intl options, "relative" or a function.
locale?string{@link UIProvider} `localeDate locale.
timeZone?stringTime zone (e.g. "Europe/Istanbul").
now?TimelineDatenowThe moment "Today", "Yesterday" and relative time are computed from.
collapsible?booleanfalseShould entries with content toggle when the title is tapped?
maxVisible?numberHow many entries show at first; the rest are behind a "Show N more" button.
loading?boolean | number3 (`true`)Loading view; with a number, that many placeholders.
empty?ReactNodeContent shown when there are no entries.
responsive?booleantrueShould an alternating timeline switch to a single column in narrow space (below 560 px)?
oppositeWidth?number88Width of the opposite side column (pixels).
itemWidth?number128, 160, 192 by sizeWidth of an entry in a horizontal timeline (pixels).
labels?Partial<TimelineLabels>Component texts.
aria-label?stringScreen reader name.
style?StyleProp<ViewStyle>Container style.