Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-customizable-radio-button
Advanced tools
Readme
This is a React-Native RadioButton component that you can freely modify its styles.
To install just input the following command:
npm i react-native-customizable-radio-button
or
yarn add react-native-customizable-radio-button
//...
import RadioButton from 'react-native-customizable-radio-button';
const options = [
{
id: 1, // required
text: 'Most High Pay', //required
},
{
id: 2,
text: 'Most Perfomance',
},
];
export default class reactNativeRadioButtonForm extends Component {
onValueChange = item => {
console.log(item);
};
render() {
return (
<RadioButton
data={options} //required
onValueChange={this.onValueChange.bind(this)} //required
/>
);
}
}
//...
import RadioButton from 'react-native-customizable-radio-button';
const options = [
{
id: 1, // required
text: 'Most High Pay', //required
},
{
id: 2,
text: 'Most Perfomance',
},
];
export default class reactNativeRadioButtonForm extends Component {
onValueChange = item => {
console.log(item);
};
render() {
return (
<RadioButton
// defaultOption={id} // you may input the selected option as default. When not marked, first is always selected
// formStyle = {{}} // add your styles to whole form container
// containerStyle={{}} // add your styles to each item container
// circleContainerStyle={{}} // add your styles to each outer circle
// innerCircleStyle={{}} // add your styles to each inner circle
// labelStyle={{}} // add your styles to each label
// isContainerClickable={false} // default false, when true whole item container changes value
data={options} //required
onValueChange={this.onValueChange.bind(this)} //required
/>
);
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A simple and (almost) fully customizable React-Native RadioButton component.
The npm package react-native-customizable-radio-button receives a total of 9 weekly downloads. As such, react-native-customizable-radio-button popularity was classified as not popular.
We found that react-native-customizable-radio-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.