Skip to content

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

Notifications You must be signed in to change notification settings

ChrisWuAnHui/react-native-roll-picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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
name = 'a' // json name with {a: 'bbb'}
onRowChange = {index => {}} // when row changed, return the index


Function

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


Usage

<Picker 
    data = {json}
    ref = '_Picker'
    name = 'jsonName'
    onRowChange = {index => {}}
/>

this.refs._Picker.setDataSource(json); 

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%