@uiw/react-native
Version:
UIW for React Native
30 lines (29 loc) • 831 B
TypeScript
import { FC } from 'react';
import { ColorValue, StyleProp, ViewStyle } from 'react-native';
import { ModalProps } from '../Modal';
export interface TreeSelectOption {
[key: string]: any;
}
export declare type TreeSelectProps = {
options: TreeSelectOption[];
defaultValue?: string[];
value?: string[];
onChange?: (value: string[], extend: {
options: TreeSelectOption[];
}) => void;
fieldNames?: {
label: string;
value: string;
children: string;
} | any;
activeColor?: ColorValue;
disabled?: boolean;
placeholder?: string;
extra?: JSX.Element;
showClear?: boolean;
contentStyle?: StyleProp<ViewStyle>;
placeholderColor?: ColorValue;
height?: number;
modalProps?: ModalProps;
};
export declare const TreeSelect: FC<TreeSelectProps>;