
Security News
Static vs. Runtime Reachability: Insights from Latioβs On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
@futurejj/react-native-checkbox
Advanced tools
A papery checkbox for react native
A beautiful, customizable, and animated checkbox component for React Native applications. This component works across iOS, Android, and Web platforms with smooth animations and accessibility support.
yarn add react-native-animated-checkbox
# or
npm install react-native-animated-checkbox
This component uses Material Community Icons. You'll need to install either:
@expo/vector-icons
(if using Expo - built-in)react-native-vector-icons
(if using React Native CLI)# For React Native CLI
npm install react-native-vector-icons
# Then follow the installation instructions for react-native-vector-icons
import React, { useState } from 'react';
import { View } from 'react-native';
import { Checkbox } from 'react-native-animated-checkbox';
export default function CheckboxExample() {
const [checked, setChecked] = useState(false);
const toggleCheckbox = () => {
setChecked(!checked);
};
return (
<View style={{ padding: 20 }}>
<Checkbox
status={checked ? 'checked' : 'unchecked'}
onPress={toggleCheckbox}
/>
</View>
);
}
<Checkbox
status="checked" // 'checked', 'unchecked', or 'indeterminate'
disabled={false} // disable the checkbox
onPress={() => {}} // handle press events
color="#6200ee" // color when checked
uncheckedColor="#757575" // color when unchecked
size={32} // customize size (default: 24)
style={{ marginRight: 8 }} // additional styles for the container
/>
Prop | Type | Default | Description |
---|---|---|---|
status | 'checked' OR 'unchecked' OR 'indeterminate' | Required | Current status of the checkbox |
disabled | boolean | false | Whether the checkbox is disabled |
onPress | (e: GestureResponderEvent) => void | Required | Callback when checkbox is pressed |
color | string | '#2196F3' | Color of the checkbox when checked |
uncheckedColor | string | '#757575' | Color of the checkbox when unchecked |
size | number | 24 | Size of the checkbox icon |
testID | string | - | Test ID for testing frameworks |
style | StyleProp<ViewStyle> | - | Additional styles for container |
The checkbox includes smooth animations:
This component is built with accessibility in mind:
checkbox
)See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β
FAQs
A papery checkbox for react native
The npm package @futurejj/react-native-checkbox receives a total of 154 weekly downloads. As such, @futurejj/react-native-checkbox popularity was classified as not popular.
We found that @futurejj/react-native-checkbox demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.