1.1.4 • Published 2 years ago

react-native-dropdown-listpicker v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-dropdown-menu

Seacrchable and fully customizable Muti-purpose dropdown menu for react native

Install package

npm i react-native-dropdown-listpicker

Import Component

import DropdownMenu from 'react-native-dropdown-menu';

Example

This component can be used as it is without any customization, just import and use

clone Example

Props

PropsTypeDescription
ItemProps{ label: string; value: string / ItemProps[] }Display item as badge with scroll
showMultipleAsBadgebooleanDisplay item as badge with scroll
dataItemProps[]List data (support only upto 1 sub-level)
mode?string'MODAL''UNDERLAY'
badgeBackgroundColor?string[]color for badges
DropDownContainerStyle?ViewStylePicker container style
DropdownListStyle?ViewStyledrop down List container style
ListStyle?ViewStyleList container style
ListLabelStyle?TextStyleList text style
markedIconStyle?TextStyle / ViewStylestyle for marked icon
selectedItemBadgeStyle?ViewStyleBadge style
selectedItemBadgeLabelStyle?TextStyleBadge item text style
selectedItemBadgeCloseIconStyle?TextStyle / ViewStyleBadge close icon text style
selectedtextStyleTextStylestyle for selected text
scrollable?booleanenable/disbale scroll
searchable?booleanenable/disable search bar
listItemLeftIconComp?JSX.Element / undefinedList left icon
ListItemSelectedIconComp?JSX.Element / undefinedchecked icon for list item
sublistItemLeftIconComp?JSX.Element / undefinedList left icon for sublist
dropdownIndicator?string'arrow' / 'plus'
onSelected(item: string[]) => voidfunction to get the selected item
placeholder?stringplaceholder for picker
HideSelectionTextStyle?TextStyleHide selection button label style

For Pull Issues

https://github.com/faccon/react-native-dropdown-listpicker/issues