UNPKG

rn-select-date-range

Version:

A simple and fully customizable React Native date range picker component

25 lines (24 loc) 926 B
/// <reference types="react" /> import { ViewStyle, TextStyle } from "react-native"; import moment from "moment"; interface IResponse { firstDate: string | moment.Moment; secondDate: string | moment.Moment; } interface IProps { onSelectDateRange: (response: IResponse) => void; responseFormat?: string; maxDate?: moment.Moment; minDate?: moment.Moment; blockSingleDateSelection?: boolean; font?: string; selectedDateContainerStyle?: ViewStyle; selectedDateStyle?: TextStyle; ln?: string; onConfirm?: () => void; onClear?: () => void; clearBtnTitle?: string; confirmBtnTitle?: string; } declare const DateRangePicker: ({ onSelectDateRange, responseFormat, maxDate, minDate, blockSingleDateSelection, font, selectedDateContainerStyle, selectedDateStyle, ln, onConfirm, onClear, clearBtnTitle, confirmBtnTitle }: IProps) => JSX.Element; export default DateRangePicker;