0.1.4 • Published 8 years ago

react-native-simple-select v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Installation

npm install --save react-native-simple-select

Usage

import Select from 'react-native-simple-select'

<Select items={['item1', 'item2', 'item3']} promptText="Select an item" onSelect={(item) => alert(item)} />

Props

PropTypeDescription
itemsarrayAn array of options to let the user choose from
promptTextstringThe string to be use as prompt text, for example: 'select an option'
onSelectfunctionA callback function to be called when the user selects an option

License

MIT License. © Agustin Dondo