0.1.0 • Published 6 months ago
rn-simple-picker v0.1.0
Android/iOS Compatible Dropdown
Installation
npm install rn-simple-picker
Usage
import Picker from 'rn-simple-picker';
<Picker
items={[
{
label: 'One',
value: 1,
// "random": "data"
},
{
label: 'Two',
value: 2,
// "random": "data"
},
]}
onSelect={(item) => this.handleSelect(item)}
selectedItem={{ label: 'One', value: 1 }} // User already selected item - optional
placeHolder="Choose Your Number" // optional
containerStyles={{ borderWidth: 2, borderColor: 'blue' }} // optional
inputStyle={{ textAlign: 'center' }} // optional
iconStyle={{ width: 45, height: 45 }} // optional
/>;
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT