React Native · Components
Calendar
Month calendar: selects a single day, a range or multiple days.
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.
Two months side by side, range and week numbers
| Wk | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|---|
| 45 | |||||||
| 46 | |||||||
| 47 | |||||||
| 48 | |||||||
| 49 | |||||||
| Wk | Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|---|
| 49 | |||||||
| 50 | |||||||
| 51 | |||||||
| 52 | |||||||
| 53 | |||||||
Import
Calendar
componentMonth calendar: selects a single day, a range or multiple days. Month and day names and the first day of the week come from the UIProvider locale. Tapping the month name in the header opens the month, then the year view; swiping left/right changes the month. Days have 44-pixel touch targets. Calculations are the same as web (@yasinsensoy/core/date).
Examples
DateInput
typeType of props that take a date: an ISO date string like "2026-10-28" or a Date. For a Date, the day in local time is used.
DateRange
interfaceA date range. Values are ISO date strings in "YYYY-MM-DD" form; an unselected end is an empty string ("").
| Name | Type | Description |
|---|---|---|
start | string | Start day. |
end | string | End day (the start is included). |
CalendarBaseProps
interfaceProps shared by all calendar types (same names as web).
| Name | Type | Default | Description |
|---|---|---|---|
min? | DateInput | Earliest selectable day. | |
max? | DateInput | Latest selectable day. | |
isDateDisabled? | (date: Date) => boolean | Days that cannot be selected (e.g. weekends). | |
disabled? | boolean | The whole calendar is disabled. | |
readOnly? | boolean | Display only. | |
month? | DateInput | Displayed month (controlled). | |
defaultMonth? | DateInput | the selected day or today | Initially displayed month. |
onMonthChange? | (month: string) => void | ISO day ("2026-10-01") when the displayed month changes. | |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | from the locale | First day of the week (0 Sunday … 6 Saturday). |
showOutsideDays? | boolean | true | Show days of the previous and next month faded. |
fixedWeeks? | boolean | false | 6 weeks every month: the height stays fixed. |
marks? | readonly DateInput[] | ((date: Date) => boolean) | Days with a dot below (e.g. an event). | |
aria-label? | string | the {@link UIProvider} `calendar` text | Screen reader name. |
style? | StyleProp<ViewStyle> | Container style. |
DateRangeInput
interfaceType of props that take a range; ends may be strings or Dates.
| Name | Type | Description |
|---|---|---|
start? | DateInput | null | Start day. |
end? | DateInput | null | End day. |
SingleCalendarProps
interfaceCalendar selecting a single day.
| Name | Type | Default | Description |
|---|---|---|---|
mode? | "single" | Single day. | |
value? | DateInput | Selected day (controlled); "" for none. | |
defaultValue? | DateInput | Initially selected day. | |
onValueChange? | (value: string, date: Date | undefined) => void | ISO day and Date when the selection changes. | |
min? | DateInput | Earliest selectable day. | |
max? | DateInput | Latest selectable day. | |
isDateDisabled? | (date: Date) => boolean | Days that cannot be selected (e.g. weekends). | |
disabled? | boolean | The whole calendar is disabled. | |
readOnly? | boolean | Display only. | |
month? | DateInput | Displayed month (controlled). | |
defaultMonth? | DateInput | the selected day or today | Initially displayed month. |
onMonthChange? | (month: string) => void | ISO day ("2026-10-01") when the displayed month changes. | |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | from the locale | First day of the week (0 Sunday … 6 Saturday). |
showOutsideDays? | boolean | true | Show days of the previous and next month faded. |
fixedWeeks? | boolean | false | 6 weeks every month: the height stays fixed. |
marks? | readonly DateInput[] | ((date: Date) => boolean) | Days with a dot below (e.g. an event). | |
aria-label? | string | the {@link UIProvider} `calendar` text | Screen reader name. |
style? | StyleProp<ViewStyle> | Container style. |
RangeCalendarProps
interfaceCalendar selecting a date range.
| Name | Type | Default | Description |
|---|---|---|---|
mode | "range" | The first tap picks the start, the second the end. | |
value? | DateRangeInput | Selected range (controlled). | |
defaultValue? | DateRangeInput | Initial range. | |
onValueChange? | (range: DateRange) => void | When the selection changes; end is empty until the end is picked. | |
minDays? | number | Minimum number of days in the range (both ends included). | |
maxDays? | number | Maximum number of days in the range. | |
min? | DateInput | Earliest selectable day. | |
max? | DateInput | Latest selectable day. | |
isDateDisabled? | (date: Date) => boolean | Days that cannot be selected (e.g. weekends). | |
disabled? | boolean | The whole calendar is disabled. | |
readOnly? | boolean | Display only. | |
month? | DateInput | Displayed month (controlled). | |
defaultMonth? | DateInput | the selected day or today | Initially displayed month. |
onMonthChange? | (month: string) => void | ISO day ("2026-10-01") when the displayed month changes. | |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | from the locale | First day of the week (0 Sunday … 6 Saturday). |
showOutsideDays? | boolean | true | Show days of the previous and next month faded. |
fixedWeeks? | boolean | false | 6 weeks every month: the height stays fixed. |
marks? | readonly DateInput[] | ((date: Date) => boolean) | Days with a dot below (e.g. an event). | |
aria-label? | string | the {@link UIProvider} `calendar` text | Screen reader name. |
style? | StyleProp<ViewStyle> | Container style. |
MultipleCalendarProps
interfaceCalendar selecting multiple days.
| Name | Type | Default | Description |
|---|---|---|---|
mode | "multiple" | Each tap selects or deselects a day. | |
value? | readonly DateInput[] | Selected days (controlled). | |
defaultValue? | readonly DateInput[] | Initially selected days. | |
onValueChange? | (values: string[], dates: Date[]) => void | Sorted ISO days and Dates when the selection changes. | |
min? | DateInput | Earliest selectable day. | |
max? | DateInput | Latest selectable day. | |
isDateDisabled? | (date: Date) => boolean | Days that cannot be selected (e.g. weekends). | |
disabled? | boolean | The whole calendar is disabled. | |
readOnly? | boolean | Display only. | |
month? | DateInput | Displayed month (controlled). | |
defaultMonth? | DateInput | the selected day or today | Initially displayed month. |
onMonthChange? | (month: string) => void | ISO day ("2026-10-01") when the displayed month changes. | |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | from the locale | First day of the week (0 Sunday … 6 Saturday). |
showOutsideDays? | boolean | true | Show days of the previous and next month faded. |
fixedWeeks? | boolean | false | 6 weeks every month: the height stays fixed. |
marks? | readonly DateInput[] | ((date: Date) => boolean) | Days with a dot below (e.g. an event). | |
aria-label? | string | the {@link UIProvider} `calendar` text | Screen reader name. |
style? | StyleProp<ViewStyle> | Container style. |
CalendarProps
typeProps of Calendar.
| Name | Type | Default | Description |
|---|---|---|---|
mode? | "single" | "range" | "multiple" | Single day. | |
value? | DateInput | DateRangeInput | readonly DateInput[] | Selected day (controlled); "" for none. | |
defaultValue? | DateInput | DateRangeInput | readonly DateInput[] | Initially selected day. | |
onValueChange? | (value: string, date: Date | undefined) => void | (range: DateRange) => void | (values: string[], dates: Date[]) => void | ISO day and Date when the selection changes. | |
min? | DateInput | Earliest selectable day. | |
max? | DateInput | Latest selectable day. | |
isDateDisabled? | (date: Date) => boolean | Days that cannot be selected (e.g. weekends). | |
disabled? | boolean | The whole calendar is disabled. | |
readOnly? | boolean | Display only. | |
month? | DateInput | Displayed month (controlled). | |
defaultMonth? | DateInput | the selected day or today | Initially displayed month. |
onMonthChange? | (month: string) => void | ISO day ("2026-10-01") when the displayed month changes. | |
weekStartsOn? | 0 | 1 | 2 | 3 | 4 | 5 | 6 | from the locale | First day of the week (0 Sunday … 6 Saturday). |
showOutsideDays? | boolean | true | Show days of the previous and next month faded. |
fixedWeeks? | boolean | false | 6 weeks every month: the height stays fixed. |
marks? | readonly DateInput[] | ((date: Date) => boolean) | Days with a dot below (e.g. an event). | |
aria-label? | string | the {@link UIProvider} `calendar` text | Screen reader name. |
style? | StyleProp<ViewStyle> | Container style. | |
minDays? | number | Minimum number of days in the range (both ends included).(RangeCalendarProps) | |
maxDays? | number | Maximum number of days in the range.(RangeCalendarProps) |