react-native-future-date-range-calendar
Version:
React Native calendar to pick future date ranges only
34 lines (33 loc) • 1.12 kB
TypeScript
import { ViewStyle } from "react-native";
import React from "react";
type CalendarRendererTypes = {
width?: number;
horizontal?: boolean;
calendarType?: "type1" | "type2";
renderPreviousIcon?: React.ReactNode;
renderNextIcon?: React.ReactNode;
disableHeaderYearAppearance?: boolean;
monthTextCustomStyle?: ViewStyle;
weekDaysCustomStyle?: ViewStyle;
weekDayCustomStyle?: ViewStyle;
dayCustomStyle?: ViewStyle;
disabledDaysCustomStyle?: ViewStyle;
disabledDaysCustomTextStyle?: ViewStyle;
activeOpacity?: number;
nonRangeDaysCustomStyle?: ViewStyle;
nonRangeDaysCustomTextStyle?: ViewStyle;
rangeDaysBackgroundColor?: string;
startAndEndDateBackgroundColor?: string;
startAndEndDateTextColor?: string;
rangeDaysTextColor?: string;
handlePrev?: (e: any) => void;
handleNext?: (e: any) => void;
months?: string[];
weekDays?: string[];
totalMonthsRenderLimit?: number;
month: number;
year: number;
days: any;
};
export declare const CalendarRenderer: (props: CalendarRendererTypes) => React.JSX.Element;
export {};