React Native · Components
Timeline
Shows events or steps in time order along a line: activity feeds, order/shipping tracking, change history, process steps.
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
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- 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?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Yesterday
- Zeynep Demir joined the project
- 12 components, 3 new icons
Thursday, October 22
- Project created
Code
Events
- Events appear here when you interact with the preview.
Order tracking: icon markers, statuses
- Order received (Done)
- Payment confirmed (Done)
- Shipped (Done)Aras Kargo · Tracking no. 1234 5678 90
- Out for delivery (Current step)The courier will deliver by 18:00 today.
- Delivered (Pending)
Horizontal steps (marker=number), the current step is centered
- Account (Done)Email and password
- Profile (Done)Name, photo
- Team (Current step)Invite your friends
- Payment (Pending)Pick a plan
- Done (Pending)
Roadmap: cards spread to both sides
- October 2026Infrastructure (Done)Monorepo, theme, utilities.
- November 2026Core components (Done)Form, overlays, navigation.
- December 2026Data components (Current step)DataGrid, TreeView, Chart, Timeline.DataGridTreeViewTimeline
- January 2027AI skill and 1.0 (Pending)Catalog refresh, stable release.
Change history: times on the left (timePosition=opposite)
Today
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- 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?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Yesterday
- Zeynep Demir joined the project
- 12 components, 3 new icons
Thursday, October 22
- Project created
Chat-like feed: the side is fixed with side, opposite content
- CustomerSupport ticket opened
- SupportTicket taken into review
- More info requestedCould you share the order number?
- Order no: #7012
- Resolved (Done)
Long feed: maxVisible={3}, placeholders at the end (loading)
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- 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?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Show 3 moreShow less
Ongoing process: a dashed tail after the last item (line), empty state
- Draft (Done)
- In review (Current step)
Import
Timeline
componentShows 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.
Examples
TimelineDate
typeValues accepted as dates: Date, an ISO string or milliseconds.
TimelineStatus
typeProgress state of an entry (same as web): done, current step, pending.
TimelineGroupBy
typeInterval 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 withgroupLabel.
TimelineVariant
typeAppearance: frameless or each entry in a card.
TimelineLine
typeStyle of the line after an entry.
TimelineAlign
typePlacement of content relative to the line: start, end or alternating sides.
Position of the time: at the end of the title, above it or opposite the line.
TimelineMarker
typeDefault marker style: a dot, an icon in a circle or a sequence number.
TimelineItem
interfaceAn entry in the timeline (same fields as web; onPress instead of href).
| Name | Type | Default | Description |
|---|---|---|---|
id? | string | number | its index | Stable key. |
title | ReactNode | Title. | |
description? | ReactNode | Short description under the title. | |
content? | ReactNode | Extra content (image, quote, list); collapses when collapsible. | |
time? | TimelineDate | Time of the entry: Date, ISO text or milliseconds. | |
timeLabel? | ReactNode | Text shown instead of the time (e.g. "Q2"). | |
opposite? | ReactNode | Content on the opposite side of the line. | |
icon? | IconProp | Icon in the marker. | |
marker? | ReactNode | A 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? | TimelineStatus | Progress state. See TimelineStatus. | |
onPress? | () => void | Called when the title is tapped (counterpart of href on web). | |
actions? | ReactNode | Actions at the end of the title row. | |
collapsible? | boolean | Should the content toggle when the title is tapped? | |
defaultOpen? | boolean | Should 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").
TimelineLabels
interfaceTimeline texts (same as web).
| Name | Type | Description |
|---|---|---|
empty | string | When there are no entries. |
loading | string | Loading. |
done | string | "Completed" status (screen reader). |
active | string | "Current step" status. |
pending | string | "Pending" status. |
showMore | string | Button that reveals hidden entries; {count} is replaced with the number. |
showLess | string | Button that hides the entries again. |
groupCount | string | Count in a collapsible group header; {count}. |
TimelineProps
interfaceTimeline props (same names as web).
| Name | Type | Default | Description |
|---|---|---|---|
items | readonly 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? | EffectProp | Effect 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) => ReactNode | Customizes 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} `locale | Date locale. |
timeZone? | string | Time zone (e.g. "Europe/Istanbul"). | |
now? | TimelineDate | now | The moment "Today", "Yesterday" and relative time are computed from. |
collapsible? | boolean | false | Should entries with content toggle when the title is tapped? |
maxVisible? | number | How many entries show at first; the rest are behind a "Show N more" button. | |
loading? | boolean | number | 3 (`true`) | Loading view; with a number, that many placeholders. |
empty? | ReactNode | Content shown when there are no entries. | |
responsive? | boolean | true | Should an alternating timeline switch to a single column in narrow space (below 560 px)? |
oppositeWidth? | number | 88 | Width of the opposite side column (pixels). |
itemWidth? | number | 128, 160, 192 by size | Width of an entry in a horizontal timeline (pixels). |
labels? | Partial<TimelineLabels> | Component texts. | |
aria-label? | string | Screen reader name. | |
style? | StyleProp<ViewStyle> | Container style. |