react-native-future-date-range-calendar
Version:
React Native calendar to pick future date ranges only
8 lines (7 loc) • 1.52 kB
JavaScript
import React from 'react';
import CommonProvider from "./context/common-provider";
import { FutureDateRangeCalendarRenderer } from "./future-date-range-calendar-renderer";
export const FutureDateRangeCalendar = (props) => {
return (React.createElement(CommonProvider, null,
React.createElement(FutureDateRangeCalendarRenderer, { width: props?.width, calendarType: props?.calendarType, horizontal: props?.horizontal, dayCustomStyle: props?.dayCustomStyle, weekDaysCustomStyle: props?.weekDaysCustomStyle, weekDayCustomStyle: props?.weekDayCustomStyle, monthTextCustomStyle: props?.monthTextCustomStyle, rangeDaysBackgroundColor: props?.rangeDaysBackgroundColor, rangeDaysTextColor: props?.rangeDaysTextColor, startAndEndDateBackgroundColor: props?.startAndEndDateBackgroundColor, startAndEndDateTextColor: props?.startAndEndDateTextColor, nonRangeDaysCustomStyle: props?.nonRangeDaysCustomStyle, nonRangeDaysCustomTextStyle: props?.nonRangeDaysCustomTextStyle, disabledDaysCustomStyle: props?.disabledDaysCustomStyle, disabledDaysCustomTextStyle: props?.disabledDaysCustomTextStyle, months: props?.months, weekDays: props?.weekDays, disableHeaderYearAppearance: props?.disableHeaderYearAppearance, renderPreviousIcon: props?.renderPreviousIcon, renderNextIcon: props?.renderNextIcon, totalMonthsRenderLimit: props?.totalMonthsRenderLimit, disablePreviousDateSelection: props?.disablePreviousDateSelection, activeOpacity: props?.activeOpacity, onSwipe: props?.onSwipe, onDateSelect: props?.onDateSelect })));
};