Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-mobile-picker
Advanced tools
React Mobile Picker is a super simple component with no restriction, which means you can use it in any way you want.
Scan this Qr in you mobile.
Or visit (in mobile or mobile simulator): http://adcentury.github.io/react-mobile-picker
npm install react-mobile-picker --save
import Picker from 'react-mobile-picker';
var Picker = require('react-mobile-picker');
Description
Option groups as {name: options}
. Key is the name of options, and value is an array of all options for this name.
Type: Object
Examples
{
title: ['Mr.', 'Mrs.', 'Ms.', 'Dr.'],
firstName: ['John', 'Micheal', 'Elizabeth'],
secondName: ['Lennon', 'Jackson', 'Jordan', 'Legend', 'Taylor']
}
Description:
Selected value groups as {name: value}
. React Mobile Picker is a Controlled Component, which means the selected value of the rendered element will always reflect the valueGroups
.
Every time you want to change the selected item, just modify valueGroups
.
Type: Object
Examples
{
title: 'Mr.',
firstName: 'Micheal',
secondName: 'Jordan'
}
Description Callback of selected value changing event. First parameter is the name of options, and second is the selected option's value.
Type: Function
Examples
handleChange = (name, value) => {
this.setState(({valueGroups}) => ({
valueGroups: {
...valueGroups,
[name]: value
}
}));
}
Description
Height of each item (that is each option). In px
.
Type: Number
Default: 36
Description
Height of the picker. In px
.
Type: Number
Default: 216
MIT.
FAQs
An iOS like select box component for React
The npm package react-mobile-picker receives a total of 8,359 weekly downloads. As such, react-mobile-picker popularity was classified as popular.
We found that react-mobile-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.