@react-form-fields/native-base
Version:
Native Base Form Fields
22 lines (21 loc) • 841 B
TypeScript
import { PropsResolver } from '@react-form-fields/core/interfaces/props';
import * as React from 'react';
import { IFlowIndexProp } from '../hooks/useFieldFlow';
import { IFieldTextProps } from '../Text';
export interface IFieldSelectProps extends PropsResolver<IFieldTextProps, 'style'>, IFlowIndexProp {
label?: string;
value: number | string | number[] | string[];
onChange: (value: any) => void;
options: IFieldSelectOption[];
formatValueDisplay?: (selectedOptions: IFieldSelectOption[]) => string;
marginBottom?: boolean;
multiple?: boolean;
fullscreen?: boolean;
searchable?: boolean;
}
export interface IFieldSelectOption {
value: string | number;
label: string;
}
declare const FieldSelect: React.MemoExoticComponent<(props: IFieldSelectProps) => JSX.Element>;
export default FieldSelect;