1.0.6 • Published 6 years ago

react-native-advanced-dropdown v1.0.6

Weekly downloads
2
License
GPL-3.0-or-later
Repository
github
Last release
6 years ago

React Native Advanced Dropdown

A react native component for creating highly customizable, paginated and searchable dropdown menus.

Advanced dropdown menu is born with need of a searchable and paginated dropdown menu.

npm version

Installation

npm install --save react-native-advanced-dropdown

Try it out

For trying, you can check the example app at https://github.com/egeucak/Advanced-Dropdown-Menu-Example.

Documentation WIP

###Props

PropRequiredDefaultTypeExplanation
dataYesnaObjectArray of objects, each object must have a "label" key. Objects can also have an optional func field, which will be run on click.
titleYesnaStringThe title to be shown on the label of dropdown button
paginationNotrueboolPagination can be disabled.
perPageNo999integerAmount of items to be shown on one page.
searchEnabledNotrueboolSearch function searchs with respect to labels of data objects
dropdownStyleNo{}CSS objectCSS to be injected in dropdown menu
buttonStyleNo{}CSS objectCSS to be injected in button that opens dropdown menu