@uiw/react-native
Version:
UIW for React Native
21 lines (20 loc) • 659 B
TypeScript
import type { DatePeriodInputProps } from '.';
export default function useDatePeriodInput({ value, onChange, format, }: Pick<DatePeriodInputProps, 'value' | 'onChange' | 'format'>): {
currentIndex: number;
dates: [Date | undefined, Date | undefined];
visible: boolean;
minDate: string | undefined;
maxDate: string | undefined;
clearIconStyle1: {
width: number;
};
clearIconStyle2: {
width: number;
};
setFalse: () => void;
handleStartPress: () => void;
handleEndPress: () => void;
handleChange: (date?: Date) => void;
handleInputClear1: () => void;
handleInputClear2: () => void;
};