@hashiprobr/react-native-paper-dropdown
Version:
A fork of Fateh Farooqui's react-native-paper-dropdown with additional configurability
49 lines (48 loc) • 1.58 kB
TypeScript
import { TextStyle, TouchableWithoutFeedback, ViewStyle } from "react-native";
import React, { ReactNode } from "react";
import { Theme } from "react-native-paper/lib/typescript/types";
export interface DropDownPropsInterface {
multiSelect?: boolean;
value: any;
onChangeValue: (_value: any) => void;
label?: string | undefined;
placeholder?: string | undefined;
mode?: "outlined" | "flat" | undefined;
list: Array<{
label: string;
value: string | number;
custom?: ReactNode;
}>;
dropDownContainerMaxHeight?: number;
dropDownContainerHeight?: number;
activeColor?: string;
theme?: Theme;
dropDownStyle?: ViewStyle;
dropDownItemSelectedTextStyle?: TextStyle;
dropDownItemSelectedStyle?: ViewStyle;
dropDownItemStyle?: ViewStyle;
dropDownItemTextStyle?: TextStyle;
accessibilityLabel?: string;
disabled?: boolean;
onFocus?: (_value: any) => void;
onBlur?: (_value: any) => void;
style?: any;
editable?: boolean;
borderless?: boolean;
background?: object;
centered?: boolean;
rippleColor?: string;
underlayColor?: string;
touchableStyle?: any;
error?: boolean;
selectionColor?: string;
underlineColor?: string;
activeUnderlineColor?: string;
outlineColor?: string;
activeOutlineColor?: string;
dense?: boolean;
iconColor?: string;
iconStyle?: any;
}
declare const DropDown: React.ForwardRefExoticComponent<DropDownPropsInterface & React.RefAttributes<TouchableWithoutFeedback>>;
export default DropDown;