react-native-modal-dropdown-picker
Version:
A customizable React Native modal dropdown picker component that lets you easily display one or more dropdown pickers in a modal. You can configure linked dropdowns (where the options of the second picker depend on the first) or independent dropdowns with
14 lines (13 loc) • 369 B
TypeScript
export type DropdownData = {
placeholder: string;
options: string[] | Record<string, string[]>;
ordered?: boolean;
};
export type ModalDropdownPickerProps = {
visible: boolean;
onConfirm: (value: string) => void;
onCancel: () => void;
dropdownData: DropdownData[];
layoutDirection?: 'horizontal' | 'vertical';
isLinked?: boolean;
};