nativerepo.com

rmc-picker


React Mobile Picker Component (web and react-native)

NPM version react-native react build status Test coverage gemnasium deps npm download

Screenshots

Development

npm i
npm start

Example

http://localhost:8000/examples/

online example: http://react-component.github.io/m-picker/

react-native

./node_modules/rc-tools run react-native-init
react-native run-ios

install

rmc-picker

Usage

see example

API

Picker props

namedescriptiontypedefault
className(web)additional css class of root dom nodeString
prefixCls(web)prefix classString''
itemStyleStyle to apply to each of the item.object
defaultSelectedValue(web)default selected values corresponding to the input data abovestring/number
selectedValuecurrent selected values corresponding to the input data abovestring/number
onValueChangefire when picker changeFunction(value)
childrenarray of picker items[{label, value}]
purewhether children is immutablebooltrue
disabledwhether picker is disabledboolfalse

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-picker is released under the MIT license.


Comments
Details
Added at: 2017/03/19
Owner: react-component
Category: other
Homepage: https://github.com/react-component/m-picker
Downloads last month: 5243
Version: 3.8.7
Compatibility

Add to your project

npm i --save rmc-picker