Skip to content

TimelineCalendar

TimelineCalendar renders a day/week schedule timeline with hour lanes and packed event blocks. Ideal for scheduling and calendar app interfaces.

Usage

TimelineExample.tsx
import { TimelineCalendar, CalendarProvider } from '@masumdev/rn-ui';
const events = [
{
start: '2026-08-25 09:00',
end: '2026-08-25 10:30',
title: 'Team Standup',
summary: 'Daily sync meeting',
color: '#6366F1',
},
];
export function TimelineExample() {
return (
<CalendarProvider date="2026-08-25">
<TimelineCalendar events={events} />
</CalendarProvider>
);
}

Props API

PropTypeDefaultDescription
events*TimelineEventProps[]Array of events to display on the timeline.
startnumber0Start hour of the timeline (0-23).
endnumber24End hour of the timeline (0-24).
onEventPress(event: TimelineEventProps) => voidCallback when an event is pressed.
onBackgroundLongPress(time: string) => voidLong press on empty time slot.

TimelineEventProps

PropTypeDefaultDescription
start*stringEvent start datetime (YYYY-MM-DD HH:mm).
end*stringEvent end datetime (YYYY-MM-DD HH:mm).
title*stringEvent title.
summarystringEvent description.
colorstringEvent background color.