Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
rmc-picker
Advanced tools
React Mobile Picker Component (web and react-native)
npm i
npm start
http://localhost:8000/examples/
online example: http://react-component.github.io/m-picker/
./node_modules/rc-tools run react-native-init
npm run watch-tsc
react-native start
react-native run-ios
<MultiPicker
selectedValue={this.state.value}
onValueChange={this.onChange}
>
<Picker indicatorClassName="my-picker-indicator">
<Picker.Item className="my-picker-view-item" value="1">one</Picker.Item>
<Picker.Item className="my-picker-view-item" value="2">two</Picker.Item>
<Picker.Item className="my-picker-view-item" value="3">three</Picker.Item>
<Picker.Item className="my-picker-view-item" value="4">four</Picker.Item>
<Picker.Item className="my-picker-view-item" value="5">five</Picker.Item>
<Picker.Item className="my-picker-view-item" value="6">six</Picker.Item>
<Picker.Item className="my-picker-view-item" value="7">seven</Picker.Item>
<Picker.Item className="my-picker-view-item" value="8">eight</Picker.Item>
</Picker>
<Picker indicatorClassName="my-picker-indicator">
<Picker.Item className="my-picker-view-item" value="11">eleven</Picker.Item>
<Picker.Item className="my-picker-view-item" value="12">twelve</Picker.Item>
<Picker.Item className="my-picker-view-item" value="13">thirteen</Picker.Item>
<Picker.Item className="my-picker-view-item" value="14">fourteen</Picker.Item>
<Picker.Item className="my-picker-view-item" value="15">fifteen</Picker.Item>
<Picker.Item className="my-picker-view-item" value="16">sixteen</Picker.Item>
<Picker.Item className="my-picker-view-item" value="17">seventeen</Picker.Item>
<Picker.Item className="my-picker-view-item" value="18">eighteen</Picker.Item>
</Picker>
</MultiPicker>
name | description | type | default |
---|---|---|---|
className(web) | additional css class of root dom node | String | |
prefixCls(web) | prefix class | String | '' |
defaultSelectedValue(web) | default selected values | string[]/number[] | |
selectedValue | current selected values | string[]/number[] | |
onValueChange | fire when picker change | Function(value) |
name | description | type | default |
---|---|---|---|
className(web) | additional css class of root dom node | String | |
prefixCls(web) | prefix class | String | '' |
defaultSelectedValue(web) | default selected values | string/number | |
selectedValue | current selected values | string/number | |
onValueChange | fire when picker change | Function(value) | |
disabled | whether picker is disabled | bool | false |
indicatorClassName | className of indicator | String | |
indicatorStyle | style of indicator | object |
name | description | type | default |
---|---|---|---|
className(web) | additional css class of root dom node | String | |
value | value of item | String |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
rmc-picker is released under the MIT license.
4.0.1 / 2017-07-17
pickerPrefixCls
/pickerItemStyle
/cols
/pure
/disabled
props on MultiPickerFAQs
React Mobile Picker Component(web and react-native)
The npm package rmc-picker receives a total of 17,738 weekly downloads. As such, rmc-picker popularity was classified as popular.
We found that rmc-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.