Skip to main content

CalendarProvider

Calendar context provider component
(code example)

info

This component extends Context props.

API​

theme​

Specify theme properties to override specific styles for calendar parts

Theme

style​

Specify style for calendar container element

ViewStyle

date​

Initial date in 'yyyy-MM-dd' format

string

onDateChanged​

Handler which gets executed when the date changes

(date: string, updateSource: UpdateSource) => void

onMonthChange​

Handler which gets executed when the month changes

(date: DateData, updateSource: UpdateSource) => void

showTodayButton​

Whether to show the today button

boolean

todayButtonStyle​

Today button's style

ViewStyle

todayBottomMargin​

Today button's top position

number

disabledOpacity​

The opacity for the disabled today button (0-1)

number