React Native · Components
EventCalendar
Event calendar and scheduler: month, week, day, agenda and year views.
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
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Code
Events
- Events appear here when you interact with the preview.
Loading from the server range by range (onRangeChange + loading)
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Read-only agenda, custom row rendering
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Import
EventCalendar
componentEvent calendar and scheduler: month, week, day, agenda and year views. Same API and the same model as EventCalendar on web (recurrence rules, layout and changes are shared in core).
- Editing: Long-press and drag an event; resize a timed box by its bottom edge and a multi-day bar by its right edge. A timed event dropped on the all-day row becomes all-day, and vice versa. A new event range is selected by long-pressing an empty slot and dragging. Everything snaps to 15 minutes; the grid scrolls by itself near the edges.
- Recurring events: A subset of RFC 5545 RRULE. When an occurrence is changed, "This event / This and following / All" is asked.
- Phone: The week drops to 3 days; swiping left/right moves to the previous/next range; details open in a bottom sheet. Looks the same on iOS and Android.
- Screen reader: Events have "Move earlier / Move later / Move to previous day / Move to next day / Extend / Shorten / Delete" actions.
- Times are wall-clock times (
"2026-10-31T14:30"); no time zone conversion is done.
Examples
defaultEventCalendarMessages
constantDefault (Turkish) texts.
enEventCalendarMessages
constantEnglish texts.
describeRecurrence
functionTurns a recurrence rule into readable text: "Every week: Monday, Wednesday", "Every month, on the last Friday", "Every 2 days, 10 times". Use it in the detail card and your own forms.
Examples
parseRecurrence
functionTurns an RFC 5545 RRULE string into a RecurrenceRule object; undefined when not recognized. An "RRULE:" prefix is allowed. Supported fields: FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH.
Examples
formatRRule
functionTurns a RecurrenceRule object into an RFC 5545 RRULE string (without the "RRULE:" prefix). To write calendar files (.ics) or store it in one database field.
Examples
getOccurrences
functionOccurrences of the events (recurrences expanded) between the given days. For your own lists, notifications or exports.
Examples
applyEventChange
functionApplies an EventChange to the event list and returns the new list (does not mutate the input). For recurring events, by scope:
"this": the occurrence is excluded from the series (exclude) and a new one-off event is added in its place."following": the series ends before this occurrence (until/count) and a new series starts from it."all": the whole series shifts by the same amount (weekly days shift too).
Examples
applyEventDelete
functionApplies an EventDeletion: a non-recurring event is deleted; for a recurring one, by scope the occurrence is excluded ("this"), the series ends before it ("following") or the whole series is deleted ("all").
Examples
EventDetailsContext
interfaceValues passed to the function that renders the detail window's content.
| Name | Type | Description |
|---|---|---|
occurrence | EventOccurrence<T> | The tapped occurrence (for a recurring event, that day's occurrence). |
close | () => void | Closes the window. |
EventCalendarProps
interfaceProps of the EventCalendar component (same names as on web).
| Name | Type | Default | Description |
|---|---|---|---|
events | readonly T[] | Events. Recurring ones (recurrence) are expanded for the visible range; even with thousands of events only the visible range is computed. | |
view? | EventCalendarView | View in controlled use. | |
defaultView? | EventCalendarView | "week" | Initial view in uncontrolled use. |
onViewChange? | (view: EventCalendarView) => void | Called when the view changes. | |
views? | readonly EventCalendarView[] | ["month", "week", "day", "agenda"] | Views offered in the view switcher (in order). With a single view the switcher is hidden. |
date? | DateInput | Day shown in controlled use ("2026-10-31" or a Date). | |
defaultDate? | DateInput | today | Initial day in uncontrolled use. |
onDateChange? | (date: string) => void | Called with the ISO day when the shown day changes. | |
onRangeChange? | (range: EventCalendarRange) => void | Called when the visible range changes (also on the first render). For loading events from the server range by range. | |
onEventClick? | (occurrence: EventOccurrence<T>) => void | Called when an event is tapped (also when the detail window opens). | |
onEventChange? | (change: EventChange<T>) => void | Called when an event is long-pressed and dragged, or resized from its bottom edge (its right edge for a bar). When given, events become editable. For a recurring event "This event / This and following / All" is asked first. Use applyEventChange to update the list. | |
onEventCreate? | (slot: EventSlot) => void | Called when an empty slot is tapped or a range is selected by long-pressing and dragging. When given, slots become selectable; usually a form is opened. | |
onEventDelete? | (deletion: EventDeletion<T>) => void | The "Delete" button in the detail window and the screen reader's "Delete" action. Can be applied with applyEventDelete. | |
onEventEdit? | (occurrence: EventOccurrence<T>) => void | The "Edit" button in the detail window. If omitted the button is not shown. | |
eventDetails? | boolean | ((event: T, context: EventDetailsContext<T>) => ReactNode) | true | Detail window that opens on tap (a bottom sheet on a phone). false turns it off; with a function you render its body. |
renderEvent? | (event: T, info: EventRenderInfo) => ReactNode | To render the inside of an event box yourself. | |
editable? | boolean | true` if `onEventChange` is given | Whether dragging and resizing are enabled. Can be turned off per event with editable: false. |
selectable? | boolean | true` if `onEventCreate` is given | Whether empty slot selection is enabled. |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | First day of the week. Defaults to the language (tr-TR is Monday). | |
minTime? | string | "00:00" | First hour of the time grid. |
maxTime? | string | "24:00" | Last hour of the time grid ("24:00" is the end of the day). |
slotDuration? | number | 30 | Interval of the thin lines in the grid (minutes). |
snapDuration? | number | 15 | Interval snapped to while dragging (minutes). |
hourHeight? | number | 56 | Height of one hour (dp; scales with the screen). Larger than on web (48) so dragging with a finger is comfortable. |
scrollToTime? | string | Hour to scroll to when the week/day view opens ("08:00"). If omitted, one hour before now when today is visible, otherwise 08:00. | |
businessHours? | BusinessHours | Business hours; hours outside are dimmed. | |
narrowDays? | number | 3 | Number of days in the week view on narrow widths (below 640 dp, i.e. a phone); navigated by swiping left/right. |
agendaDays? | number | 30 | Number of days shown per page in the agenda. |
showWeekNumbers? | boolean | false | Show ISO week numbers? |
dimPastEvents? | boolean | true | Dim past events? |
defaultDuration? | number | 60 | Duration of a timed event without a duration (minutes). |
loading? | boolean | Shows a thin loading bar on top (e.g. while a range loads). | |
toolbar? | boolean | true | Toolbar (today, previous/next, title, view switcher). |
toolbarEnd? | ReactNode | Elements to add at the end of the toolbar (e.g. a "New event" button). On narrow screens they are on the view switcher's row. | |
messages? | Partial<EventCalendarMessages> | Texts. If omitted, Turkish or English defaults depending on the language; give only the ones you want to change. See EventCalendarMessages. | |
locale? | string | Language of the date and time formats. Defaults to the UIProvider language. | |
label? | string | messages.label | Screen reader name. |
style? | StyleProp<ViewStyle> | Root style. The height comes from here (or from the container's flex). | |
testID? | string | Test id. |
Calendar views.
Weekday
typeDay of the week: 0 Sunday, 1 Monday … 6 Saturday.
BusinessHours
interfaceBusiness hours: hours outside are shown faded.
| Name | Type | Default | Description |
|---|---|---|---|
days? | readonly number[] | [1, 2, 3, 4, 5] | Working days of the week (0 Sunday … 6 Saturday). |
start | string | Start ("09:00"). | |
end | string | End ("18:00"). |
EventCalendarMessages
interfaceTexts of EventCalendar. Pass only the ones you want to change with messages; the rest are the Turkish defaults. Placeholders such as {count} are replaced with values.
| Name | Type | Default | Description |
|---|---|---|---|
label | string | "Etkinlik takvimi" | Screen reader name of the calendar. |
today | string | "Bugün" | |
previous | string | "Önceki" | |
next | string | "Sonraki" | |
month | string | "Ay" | View names. |
week | string | "Hafta" | |
day | string | "Gün" | |
agenda | string | "Ajanda" | |
year | string | "Yıl" | |
days | string | "{count} gün" | Name of the week view on narrow screens. |
view | string | "Görünüm" | Screen reader name of the view picker. |
goToDate | string | "Tarihe git" | Go to date button. |
allDay | string | "Tüm gün" | |
more | string | "+{count} daha" | Events that do not fit. |
showLess | string | "Daralt" | Collapses the all-day row. |
noEvents | string | "Bu aralıkta etkinlik yok" | When the agenda has no events. |
newEvent | string | "Yeni etkinlik" | Name of the new event created while dragging. |
untitled | string | "(Başlıksız)" | Untitled event. |
edit | string | "Düzenle" | |
delete | string | "Sil" | |
close | string | "Kapat" | |
confirm | string | "Tamam" | |
cancel | string | "İptal" | |
recurringChange | string | "Tekrarlayan etkinlik değiştirilsin mi?" | Question asked when changing a recurring event. |
recurringDelete | string | "Tekrarlayan etkinlik silinsin mi?" | |
scopeThis | string | "Bu etkinlik" | |
scopeFollowing | string | "Bu ve sonraki etkinlikler" | |
scopeAll | string | "Tüm etkinlikler" | |
weekNumber | string | "{week}. hafta" | Week number. |
keyboardHint | string | "Taşımak için Alt ve ok tuşları, süreyi değiştirmek için Alt, Shift ve yukarı/aşağı ok" | Keyboard hint (screen reader). |
touchHint | string | "Taşımak için basılı tutup sürükleyin" | Touch hint (screen reader, React Native). |
moveEarlier | string | "Erkene al" | Accessibility action: move 15 minutes (the snap interval) earlier. |
moveLater | string | "İleriye al" | |
movePreviousDay | string | "Önceki güne taşı" | |
moveNextDay | string | "Sonraki güne taşı" | |
lengthen | string | "Uzat" | |
shorten | string | "Kısalt" | |
daily | string | "Her gün" | Recurrence texts. |
everyDays | string | "{count} günde bir" | |
weekly | string | "Her hafta" | |
everyWeeks | string | "{count} haftada bir" | |
monthly | string | "Her ay" | |
everyMonths | string | "{count} ayda bir" | |
yearly | string | "Her yıl" | |
everyYears | string | "{count} yılda bir" | |
onMonthDay | string | "ayın {day}. günü" | |
onLastMonthDay | string | "ayın son günü" | |
onNthWeekday | string | "ayın {nth}. {weekday}" | |
onLastWeekday | string | "ayın son {weekday}" | |
until | string | "{date} tarihine kadar" | |
times | string | "{count} kez" |
NthWeekday
interfaceWhich weekday of the month or year: { day: 2, nth: 1 } is the first Tuesday of the month, { day: 5, nth: -1 } the last Friday.
| Name | Type | Description |
|---|---|---|
day | Weekday | Day of the week (0 Sunday … 6 Saturday). |
nth | number | Which one: 1 first, 2 second … ; -1 last, -2 second to last. |
EventCalendarRange
interfaceVisible date range (both ends included, "YYYY-MM-DD").
| Name | Type | Description |
|---|---|---|
start | string | First day. |
end | string | Last day. |
RecurrenceRule
interfaceA recurrence rule. A commonly used subset of the RFC 5545 (iCalendar) RRULE; the same rule can be given as text too ("FREQ=WEEKLY;BYDAY=MO,WE"). See parseRecurrence.
| Name | Type | Default | Description |
|---|---|---|---|
freq | "daily" | "weekly" | "monthly" | "yearly" | Frequency. | |
interval? | number | 1 | Every how many units (2 → every two weeks). |
count? | number | Total number of occurrences (the first included). Not given together with until. | |
until? | DateInput | Latest day of the last occurrence (inclusive). | |
byWeekday? | readonly (Weekday | NthWeekday)[] | Days of the week. Which days in weekly; with nth in monthly/yearly, like "the first Monday of the month"; a filter in daily. | |
byMonthDay? | readonly number[] | Days of the month (1–31; -1 is the last day of the month). | |
byMonth? | readonly number[] | Months (1 January … 12 December). |
Examples
CalendarEvent
interfaceAn event shown in the calendar. You may add your own fields; every callback returns the event as the object you gave.
Times are wall clock times (no time zone): "2026-10-31T14:30", "2026-10-31" for all-day, or a Date (local time).
| Name | Type | Default | Description |
|---|---|---|---|
id | string | number | Unique id. | |
title | string | Title. | |
start | DateInput | Start: "2026-10-31T09:00", "2026-10-31" for all-day, or a Date. Text without a time makes the event all-day automatically. | |
end? | DateInput | End. For timed events the end instant (exclusive); for all-day events the last day (inclusive): end: "2026-11-04" for November 2–4. When omitted, a timed event lasts 1 hour and an all-day event one day. | |
allDay? | boolean | All-day event? When omitted, whether start has a time decides. | |
color? | string | "chart-1" | Color: any CSS color ("#e11d48", "oklch(…)") or a theme name: "chart-1" … "chart-8", "primary", "success", "warning", "danger". |
description? | string | Description shown in the detail card. | |
location? | string | Location. | |
recurrence? | RecurrenceRule | string | Recurrence rule (object or RRULE string). See RecurrenceRule. | |
exclude? | readonly DateInput[] | Days excluded from the recurrence (deleted or separately edited occurrences). | |
editable? | boolean | When false, this event cannot be dragged or resized. |
RecurringScope
typeWhich occurrences of a recurring event change.
EventChange
interfaceResult of a drag or resize. Apply it to the event list with applyEventChange.
| Name | Type | Description |
|---|---|---|
event | T | The changed event (the object you gave). |
start | string | New start: "YYYY-MM-DDTHH:mm" when timed, "YYYY-MM-DD" when all-day. |
end | string | New end: the end instant when timed, the last day (inclusive) when all-day. |
allDay | boolean | Is the new state all-day? (Changes when dragged onto the all-day row.) |
kind | "move" | "resize" | Kind of change. |
recurring | boolean | Is the event recurring? |
scope | RecurringScope | Scope the user picked for a recurring event; always "all" for a non-recurring one. |
occurrenceStart | string | Original start of the changed occurrence (same format). |
EventDeletion
interfaceAn event to delete. Apply it with applyEventDelete.
| Name | Type | Description |
|---|---|---|
event | T | The deleted event. |
recurring | boolean | Is the event recurring? |
scope | RecurringScope | Picked scope for a recurring event; "all" otherwise. |
occurrenceStart | string | Start of the deleted occurrence. |
EventSlot
interfaceA time range selected by dragging or clicking on empty space.
| Name | Type | Description |
|---|---|---|
start | string | Start: "YYYY-MM-DDTHH:mm" when timed, "YYYY-MM-DD" when all-day. |
end | string | End: the end instant when timed, the last day (inclusive) when all-day. |
allDay | boolean | Selected from the all-day row or the month view? |
EventOccurrence
interfaceA single occurrence of an event within a range (each repeat of a recurring event is separate). Returned by getOccurrences.
| Name | Type | Description |
|---|---|---|
key | string | Unique key: "id:YYYY-MM-DD" for recurring ones. |
event | T | The event itself. |
start | string | Start ("YYYY-MM-DDTHH:mm" when timed, "YYYY-MM-DD" when all-day). |
end | string | End (the end instant when timed, the last day inclusive when all-day). |
allDay | boolean | All-day? |
recurring | boolean | An occurrence of a recurring event? |
ApplyChangeOptions
interfaceOptions: id of the new event in operations that split an occurrence off. "<id>-<YYYY-MM-DD>" when omitted.
| Name | Type | Description |
|---|---|---|
createId? | (event: T, occurrenceStart: string) => string | number | Builds an id for a split occurrence or a new series. |
EventRenderInfo
interfaceInformation passed to the EventCalendarProps.renderEvent function.
| Name | Type | Description |
|---|---|---|
view | EventCalendarView | Which view it is drawn in. |
variant | "timed" | "bar" | "dot" | "agenda" | Shape of the box: "timed" a box in the time grid, "bar" an all-day or multi-day bar, "dot" a timed row in the month view, "agenda" an agenda row. |
time | string | Formatted time range ("09:00 – 10:30"); empty for all-day. |
dragging | boolean | Whether it is being dragged. |