rn-roll-picker

1.0.0 • Public • Published

rn-roll-picker

A cross-platform (iOS&Android), selector/picker component for React Native.


Demo



Install

npm install rn-roll-picker --save


Props

data = {[{a: 'bbb'}]} // json type array
name = 'a' // json name with {a: 'bbb'}
onRowChange = {index => {}} // when row changed, return the index


Function

ref.setDataSource(data) // reset data with json type array


Usage

import Picker from 'rn-roll-picker'

<Picker 
    data = {[{a: 'bbb'}]}
    ref = '_Picker'
    name = 'a'
    onRowChange = {index => {}}
/>

this.refs._Picker.setDataSource(data); 

Readme

Keywords

none

Package Sidebar

Install

npm i rn-roll-picker

Weekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

473 kB

Total Files

10

Last publish

Collaborators

  • shahnewaj