UNPKG

@fruits-chain/react-native-xiaoshu

Version:
16 lines • 668 B
import type { PickerOption, PickerValue } from '../picker-view/interface'; import type { DatePickerColumnMode, RenderLabel } from './interface'; export interface UseDatePickerOption { mode: DatePickerColumnMode; value: Date; onChange: (value: Date) => void; min?: Date; max?: Date; renderLabel?: RenderLabel; } type ColumnItem = PickerOption[]; type Columns = ColumnItem[]; type Values = number[]; declare const useDatePicker: ({ mode, value, onChange, min, max, renderLabel, }: UseDatePickerOption) => readonly [Values, Columns, (v: PickerValue[]) => void, Date, Date]; export default useDatePicker; //# sourceMappingURL=useDatePicker.d.ts.map