0.1.4 • Published 8 years ago
react-native-simple-select v0.1.4
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