react-native-modern-elements
Version:
A modern, customizable UI component library for React Native
42 lines (41 loc) • 1.2 kB
TypeScript
import React from "react";
import { TextStyle, ViewStyle } from "react-native";
/** ------------------ Types ------------------ */
export interface SelectOption {
key?: any;
value?: any;
modallable: string;
icons?: React.ReactNode;
disabled?: boolean;
}
interface SelectListProps {
setSelected: (val: any) => void;
placeholder?: string;
InputboxStyles?: ViewStyle;
dropdownItemStyles?: ViewStyle;
dropdownTextStyles?: TextStyle;
maxHeight?: number;
data: SelectOption[];
defaultOption?: SelectOption;
searchicon?: boolean | React.ReactNode;
search?: boolean;
searchPlaceholder?: string;
notFoundText?: string;
onSelect?: () => void;
onSelectItem?: (val: any) => void;
save?: "key" | "value";
dropdownShown?: boolean;
fontFamily?: string;
DefaultTitle?: string;
lable?: string;
lableStyle?: TextStyle;
Reset?: boolean;
allIconHeight?: number;
allIconWidth?: number;
inputTexStyles?: number;
selectedIcons?: boolean;
dropdownShadow?: boolean;
dropdownBoxStyle?: ViewStyle;
}
declare const _default: React.NamedExoticComponent<SelectListProps>;
export default _default;