Skip to content

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

License

Notifications You must be signed in to change notification settings

yjy5264/react-native-roll-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-roll-picker

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


Demo



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); 

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published