react-native-simple-select

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i react-native-simple-select

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • agustind