UNPKG

react-native-calendars

Version:
77 lines (76 loc) 2.24 kB
{ "name": "CalendarProvider", "description": "Calendar context provider component", "images": [ ], "extends": ["Context"], "extendsLink": [ "https://reactjs.org/docs/context.html" ], "example": "https://github.com/wix/react-native-calendars/blob/master/example/src/screens/expandableCalendar.tsx", "props": [ { "name": "theme", "type": "Theme", "description": "Specify theme properties to override specific styles for calendar parts" }, { "name": "style", "type": "ViewStyle", "description": "Specify style for calendar container element" }, { "name": "date", "type": "string", "description": "Initial date in 'yyyy-MM-dd' format", "default": "now" }, { "name": "onDateChanged", "type": "(date: string, updateSource: UpdateSource) => void", "description": "Handler which gets executed when the date changes" }, { "name": "onMonthChange", "type": "(date: DateData, updateSource: UpdateSource) => void", "description": "Handler which gets executed when the month changes" }, { "name": "disableAutoDaySelection", "type": "CalendarNavigationTypes[]", "description": "The calendar navigation type in which to disable the auto day selection (get options from ExpandableCalendar.navigationTypes)" }, { "name": "showTodayButton", "type": "boolean", "description": "Whether to show the today button", "default": "true" }, { "name": "todayButtonStyle", "type": "ViewStyle", "description": "Today button's style" }, { "name": "todayBottomMargin", "type": "number", "description": "Today button's top position" }, { "name": "disabledOpacity", "type": "number", "description": "The opacity for the disabled today button (0-1)" }, { "name": "numberOfDays", "type": "number", "description": "The number of days to present in the timeline calendar (1-7)" }, { "name": "timelineLeftInset", "type": "number", "description": "The left inset of the timeline calendar (sidebar width)", "default": "72" } ] }