
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
react-native-customizable-checkbox
Advanced tools
A simple and fully customizable React Native Checkbox component.
This is a React-Native Checkbox component that you can freely modify its styles.
To install just input the following command:
npm i react-native-customizable-checkbox
or
yarn add react-native-customizable-checkbox
//...
state = {
check: false,
}
handleChange = () => {
console.log("check!")
}
render(){
return (
<CheckBox
label="Check"
value={this.state.check} // required
onChangeValue={() => this.handleChange()} //required
/>
)
}
//...
state = {
check: false,
}
handleChange = () => {
console.log("check!")
}
render(){
return (
<Checkbox
label="Check"
// isContainerClickable={true} // (default false), when true, clicks on checkbox container will change it's state
// useNativeDriver={true} // (default false)
// checkImage={pathToImage} image for check mark
// colorActive={"#0ff"} hex color when checkbox is marked
// colorInactive={"#fff"} hex color when checkbox is unmarked
// boxStyle={yourBoxStyles} your custom style to the box
// containerStyle={yourContainerStyles} your custom style for the whole container
// textStyle={yourTextStyles} your custom style for the label
value={this.state.check} // required
onChangeValue={() => this.handleChange()} //required
/>
)
}
import check from '../assets/images/yourImage';
// ...
checkImage = {check};
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
A simple and fully customizable React Native Checkbox component.
We found that react-native-customizable-checkbox 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.