react-native-simple-select
v0.1.4
Published
Simple select or picker component for iOS and Android with an amazing performance.
Downloads
7
Maintainers
Readme
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
| Prop | Type | Description |
|---|---|---|
|items
|array
|An array of options to let the user choose from|
|promptText
|string
|The string to be use as prompt text, for example: 'select an option'|
|onSelect
|function
|A callback function to be called when the user selects an option|
License
MIT License. © Agustin Dondo