npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-advanced-checkbox

v2.0.6

Published

A customizable, animated checkbox component for React Native with group support, haptic feedback, and accessibility features, compatible with React Native 0.72.0 and above.

Downloads

1,954

Readme

🎯 react-native-advanced-checkbox


🚀 Installation

Install the package via npm or Yarn:

npm install react-native-advanced-checkbox
# or
yarn add react-native-advanced-checkbox

✨ Features

  • TypeScript Support
  • 🖼️ Custom Images for checked/unchecked states
  • 🎨 Color Customization (checked / unchecked)
  • 🏷️ Labels with left/right positioning
  • 🧠 Checkbox Groups with CheckboxGroup
  • 🎞️ Animations: bounce, fade, rotate
  • Accessibility: screen reader support
  • 🧪 Testability: testID support
  • 📱 Cross-Platform (iOS & Android)
  • ⚛️ New Architecture Ready with useNativeDriver

📦 Compatibility

| Package | Version | |----------------|-----------------| | React Native | >= 0.72.0 (tested up to 0.79.x) | | React | >= 18.2.0 (tested up to 19.x) |


🧑‍💻 Usage

✅ Basic Example

import React, { useState } from 'react';
import { AdvancedCheckbox } from 'react-native-advanced-checkbox';

const App = () => {
  const [checked, setChecked] = useState(false);

  return (
    <AdvancedCheckbox
      value={checked}
      onValueChange={setChecked}
      label="Agree to terms"
      checkedColor="#007AFF"
      uncheckedColor="#ccc"
      size={24}
    />
  );
};

export default App;

👥 Checkbox Group Example

import React, { useState } from 'react';
import { View } from 'react-native';
import { CheckboxGroup, AdvancedCheckbox } from 'react-native-advanced-checkbox';

const App = () => {
  const [selectedValues, setSelectedValues] = useState<string[]>(['option1']);

  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <CheckboxGroup onValueChange={setSelectedValues}>
        <AdvancedCheckbox value="option1" label="Option 1" checkedColor="#FF6347" />
        <AdvancedCheckbox value="option2" label="Option 2" checkedColor="#FF6347" />
        <AdvancedCheckbox value="option3" label="Option 3" checkedColor="#FF6347" />
      </CheckboxGroup>
    </View>
  );
};

export default App;

⚙️ Advanced Customization

<AdvancedCheckbox
  value={checked}
  onValueChange={setChecked}
  label="Custom Checkbox"
  labelPosition="left"
  checkedColor="#28a745"
  uncheckedColor="#6c757d"
  size={30}
  animationType="rotate"
  checkBoxStyle={{ borderRadius: 8 }}
  labelStyle={{ fontSize: 18, color: '#333' }}
  testID="custom-checkbox"
  accessibilityLabel="Toggle custom option"
  accessibilityHint="Toggles the custom checkbox on or off"
/>

📋 Props

AdvancedCheckbox

| Prop | Type | Default | Description | |------|------|---------|-------------| | value | boolean \| string | false | Current value | | onValueChange | (value: boolean \| string) => void | - | Callback | | checkedImage / uncheckedImage | ImageSourcePropType | - | Custom images | | size | number | 24 | Size of checkbox | | label | string | - | Label text | | labelPosition | 'left' \| 'right' | 'right' | Label alignment | | labelStyle, containerStyle, checkBoxStyle | StyleProp | - | Styling | | checkedColor / uncheckedColor | string | #007AFF / #ccc | Colors | | disabled | boolean | false | Disable checkbox | | animationType | 'bounce' \| 'fade' \| 'rotate' | 'bounce' | Animation type | | checkMarkContent | React.ReactNode | | Custom checkmark | | testID, accessibilityLabel, accessibilityHint | string | - | Test & a11y support |

CheckboxGroup

| Prop | Type | Default | Description | |------|------|---------|-------------| | onValueChange | (values: string[]) => void | - | Callback | | initialValues | string[] | [] | Initial selection | | style | StyleProp<ViewStyle> | - | Group style | | children | React.ReactNode | - | Checkbox items |


🎨 Customization Tips

// Custom images and you can call image url also here
<AdvancedCheckbox
  checkedImage={require('./checked.png')} 
  uncheckedImage={require('./unchecked.png')}
/>

// Custom colors and style
<AdvancedCheckbox
  checkedColor="#FF6347"
  uncheckedColor="#6c757d"
  checkBoxStyle={{ borderRadius: 10, borderWidth: 2 }}
/>

// Custom checkmark content
<AdvancedCheckbox
  checkMarkContent={<Text style={{ color: '#fff' }}>✔</Text>}
/>

🤝 Contributing

We welcome contributions! Check out our CONTRIBUTING.md for details.

⚠️ All development work must be submitted as a pull request to the dev branch. Pull requests targeting main will be rejected or closed.


📜 Code of Conduct

Read our CODE_OF_CONDUCT.md to help maintain a welcoming community.


📄 License

MIT © Sujeet Kumar
See LICENSE for full details.


🛠 Support & Feedback

Found a bug or have a feature request?
Please open an issue on GitHub.