UNPKG

rn_ui_dropdown

Version:

`rn_ui_dropdown` is a customizable dropdown component for React Native that allows you to easily add a dropdown menu with options, selection handling, and dynamic rendering. It provides both single-select and multi-select modes

25 lines (22 loc) 970 B
import React from 'react'; import {ViewStyle, TextStyle, ImageStyle, FlexStyle} from 'react-native'; export interface RnUiDropdownProps { options: any[]; selectedOption: any; bindingProp: string; displayProp: string; multiSelect?: boolean; onSearchTextChange?: Function; onSelectionChange: Function; containerStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; selectedOptionStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; selectedOptionTextStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; optionsStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; optionsTextStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; searchBoxStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; searchTextStyle?: ViewStyle | TextStyle | ImageStyle | FlexStyle; placeholderText?: string; searchPlaceholderText?: string; } declare const RnDropdown: React.FC<RnUiDropdownProps>; export default RnDropdown;