export type ParsedMaskedDate = { [key: string]: boolean; }; export interface CalendarProps { /** * Selected date value. */ value?: Date; /** * Visible date of month that calendar opens to display. Default is now. */ visibleDate: Date; /** * Mininum date. Restrict the range of possible date values. */ minDate?: Date; /** * Maximum date. Restrict the range of possible date values. */ maxDate?: Date; /** * Callback is called when selected date value is changed. */ onChange?: (date: Date) => void; /** * Handler to be called when the user taps the previous button. */ onPreviousPress?: () => void; /** * Handler to be called when the user taps the next button. */ onNextPress?: () => void; /** * Handler to be called when the user taps the title. */ onTitlePress?: () => void; /** * Mark dates to display on calendar. */ markedDates?: Date[]; /** * Testing id of the component. */ testID?: string; /** * Callback when header month is changed, passing this prop will disable onTitlePress. */ onMonthChange?: (date: Date) => void; onToggleMonthPicker?: (visible: boolean) => void; /** * Label for the confirm button of the month picker, Android only. */ monthPickerConfirmLabel?: string; /** * Label for the cancel button of the month picker, Android only. */ monthPickerCancelLabel?: string; }