UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

18 lines (17 loc) 674 B
import React from 'react'; import { Omit } from 'utility-types'; import { PickerColumn, PickerValue } from '../picker-view/PropsType'; import { PickerPropsType } from './PropsType'; export type PickerActions = { open: () => void; close: () => void; toggle: () => void; value?: PickerValue[]; }; export type PickerRef = PickerActions; export interface RMCPickerProps extends Omit<PickerPropsType, 'data' | 'cols' | 'cascade'> { columns: PickerColumn[]; handleSelect: (value: PickerValue, index: number) => void; } declare const RMCPicker: React.ForwardRefExoticComponent<RMCPickerProps & React.RefAttributes<PickerActions>>; export default RMCPicker;