react-native-mypicker
React Native Picker for only iOS
Installation
$ npm install react-native-mypicker
Import
$ Import MyPicker from 'react-native-mypicker'
Usage
<Button title="Click Me" onPress={ => <MyPicker ref="picker" data={[{label: 'a', value: '10'}, {label: 'b', value: '20'}]} onDone={data => alert}/>
Props
Props | Description |
---|---|
data | Object Array |
cancelButtonColor | HEX / RGBA |
doneButtonColor | HEX / RGBA |
Basic Example
import React,
License
MIT