1.0.0 • Published 5 years ago

rn-searchable-dropdown v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

rn-searchable-dropdown

Searchable Dropdown Component for React Native.

Installation

Yarn

yarn add rn-searchable-dropdown

NPM

npm install rn-searchable-dropdown

Properties

the library supports following props.

NameRequiredTypeDescription
itemsYesArraythe array of items to be displayed in the dropdown
selectedTextNostringdefault value for the text input
titleNostringTitle for the field
dropdownWidthNonumberwidth of the dropdown component. By default it is 350
textInutStyleNoobjectstyling for the text input component
onEndEditingYesfuncfunction to be called when editing is done. it passes two parameters. first: selected Text, Second: Selected object if selected from dropdown
placeholderNostringPlaceholder value for the text input