import {ReactElement} from 'react'; import {ImageStyle, StyleProp, TextStyle, ViewStyle} from 'react-native'; import {CalendarHeaderProps} from 'react-native-calendars/src/calendar/header/index'; export interface headerInterface extends CalendarHeaderProps {} import {CalendarProps} from 'react-native-calendars/src/calendar/index'; export interface props extends Omit { visible?: boolean; type?: 'modal' | 'view'; mode?: 'single' | 'rangePicker'; hideExtraDays?: boolean; theme?: { selectedDateColor?: string; selectedDateBackground?: string; footerButtonTextColor?: string; modalOverlayColor?: string; titleColor?: string; dayNameColor?: string; iconColor?: string; }; showFooter?: boolean; onConfirm?: () => void; confirmButtonText?: string; cancelButtonText?: string; confirmButton?: ReactElement; cancelButton?: ReactElement; currentDate?: string; // YYYY-MM-DD onCancel?: () => void; onChnage: (e: string | string[]) => void; footer?: ReactElement; style?: { calender?: StyleProp; footerContainer?: StyleProp; footerButton?: StyleProp; footerButtonText?: StyleProp; footerCancelButton?: StyleProp; footerConfirmButton?: StyleProp; calendarWrapper?: StyleProp; modalOverlay?: StyleProp; header?: StyleProp; headerButton?: StyleProp; Title?: StyleProp; headerButtonsContainer?: StyleProp; daysContainer?: StyleProp; dayName?: StyleProp; leftArrowButton?: StyleProp; RightArrowButton?: StyleProp; arrow?: StyleProp; leftArrow?: StyleProp; rightArrow?: StyleProp; customTextStyle?: StyleProp; customContainerStyle?: StyleProp; }; current?: string; initialDate?: string; minDate?: string; maxDate?: string; showSixWeeks?: boolean; markingType?: 'dot' | 'multi-dot' | 'period' | 'multi-period' | 'custom'; showLeftArrow?: boolean; showRightArrow?: boolean; hideArrows?: boolean; showWeekDays?: boolean; showTitle?: boolean; header?: (e: CalendarHeaderProps, currentMonth: string) => ReactElement; title?: ReactElement; dayNames?: string[]; }