@uiw/react-native
Version:
UIW for React Native
22 lines (21 loc) • 739 B
TypeScript
import React from 'react';
import { StyleProp, TextStyle } from 'react-native';
import { PickerProps } from '../../Picker';
declare enum DateObject {
year = "\u5E74",
month = "\u6708",
day = "\u65E5",
hour = "\u65F6",
minute = "\u5206",
second = "\u79D2"
}
export declare type DateKey = keyof typeof DateObject;
export interface PickerViewProps extends PickerProps {
title: DateKey;
showTitle?: boolean;
titleStyle?: StyleProp<TextStyle>;
getTypeDate: (index: number, label: string, title: DateKey) => unknown;
renderTitle?: (text: '年' | '月' | '日' | '时' | '分' | '秒') => React.ReactNode;
}
declare const PickerView: (props: PickerViewProps) => JSX.Element;
export default PickerView;