
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-checkbox-animated
Advanced tools
A customizable animated checkbox component for React Native
A customizable animated checkbox component for React Native. No extra library required.
$ npm install --save react-native-checkbox-animated
$ yarn add react-native-checkbox-animated
// ... Imports
import React, { useState } from "react";
import Checkbox from "react-native-checkbox-animated";
const App = () => {
const [checked, setChecked] = useState(false);
return (
<View>
...
<CheckBox
label="your label here"
onValueChange={val => setChecked(val)}
checked={checked}
/>
...
</View>
);
};
Checkout examples.js for the above examples.
| Property | Description | Required | Type | Default Value |
|---|---|---|---|---|
checked | Current state of the checkBox | true | boolean | false |
onValueChange | Callback when checkbox is pressed. Return checkbox state | true | function => boolean | - |
size | Specify the size of the checkBox | false | number | 20 |
label | Text or React Component that follows the checkbox | false | string / React Component | Your label here |
touchableLabel | Specify if state of checkbox changes when label is pressed | false | boolean | true |
checkedBackgroundColor | Specify the color of checkbox's background when it's checked | false | string | #22cdf0 |
unCheckedBackgroundColor | Specify the color of checkbox's background when it's not checked | false | string | white |
checkedBorderColor | Specify the color of checkbox's border when it's checked | false | string | grey |
unCheckedBorderColor | Specify the color of checkbox's border when it's not checked | false | string | transparent |
borderWidth | Border width of checkbox | false | number | 1 |
rippleEffect | Specify if label has ripple effect on press when touchableLabel is set to true | false | boolean | true |
rippleColor | Specify the color of ripple effect when it is set to true | false | string | black |
checkPosition | Specify the position where the checkbox will be rendered | false | enum('left' | 'right') | left |
checkBoxRadius | Specify the radius of the checkbox | false | number | 20% of size |
rounded | Set the shape of the checkbox to be rounded instead of a square | false | boolean | false |
checkMarkSize | Specify the size of the checkbox | false | number | 15 |
checkMarkColor | Specify the color of the default checkmark | false | string | black |
animationType | Specify the custom animation type | false | enum('scale' | 'left' | 'reveal') | scale |
checkStyle | Text styles props applied to the checkmark character | false | TextStyle | {} |
labelStyle | Text styles props applied to your label | false | TextStyle | {} |
labelContainerStyle | View styles props applied to label container | false | ViewStyle | {} |
containerStyle | View styles props applied to the main container | false | ViewStyle | {} |
checkboxContainerStyle | View styles props applied to the container that wraps the checkbox | false | ViewStyle | { padding: 10 } |
boxStyle | View styles props applied to the box that wraps the checkmark. | false | ViewStyle | {} |
customMarker | Replace the checkmark for your custom checkmark | false | ReactNode | - |
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
Licensed under the MIT License.
FAQs
A customizable animated checkbox component for React Native
The npm package react-native-checkbox-animated receives a total of 6 weekly downloads. As such, react-native-checkbox-animated popularity was classified as not popular.
We found that react-native-checkbox-animated 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.