1.0.6 • Published 7 years ago

react-native-roll-picker v1.0.6

Weekly downloads
7
License
MIT
Repository
-
Last release
7 years ago

react-native-roll-picker

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

Demo

npm.io

Install

npm install react-native-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 'react-native-roll-picker'

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

this.refs._Picker.setDataSource(data); 
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago