An open API service indexing awesome lists of open source software.

https://github.com/getsettalk/react-native-advanced-checkbox

A powerful, fully-featured checkbox component for React Native, built with TypeScript and designed for maximum flexibility, accessibility, and performance. Supports custom images, rich animations, grouped checkboxes, haptic feedback, and ready for the new architecture support.
https://github.com/getsettalk/react-native-advanced-checkbox

android checkbox ios react-native

Last synced: about 1 year ago
JSON representation

A powerful, fully-featured checkbox component for React Native, built with TypeScript and designed for maximum flexibility, accessibility, and performance. Supports custom images, rich animations, grouped checkboxes, haptic feedback, and ready for the new architecture support.

Awesome Lists containing this project

README

          

# ๐ŸŽฏ **react-native-advanced-checkbox**


react-native-advanced-checkbox


A versatile, customizable checkbox component for React Native

Built with TypeScript ยท Animations ยท Group Management



npm version


License: MIT


Contributor Covenant

---

## ๐Ÿš€ Installation

Install the package via npm or Yarn:

```bash
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

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

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

return (

);
};

export default App;
```

---

### ๐Ÿ‘ฅ Checkbox Group Example

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

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

return (







);
};

export default App;
```

---

### โš™๏ธ Advanced Customization

```tsx

```

---

## ๐Ÿ“‹ 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` | - | Group style |
| `children` | `React.ReactNode` | - | Checkbox items |

---

## ๐ŸŽจ Customization Tips

```tsx
// Custom images and you can call image url also here

// Custom colors and style

// Custom checkmark content
โœ”}
/>
```

---

## ๐Ÿค Contributing

We welcome contributions! Check out our [CONTRIBUTING.md](CONTRIBUTING.md) for details.

---

## ๐Ÿ“œ Code of Conduct

Read our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) to help maintain a welcoming community.

---

## ๐Ÿ“„ License

MIT ยฉ [Sujeet Kumar](https://github.com/getsettalk)
See [LICENSE](LICENSE) for full details.

---

## ๐Ÿ›  Support & Feedback

Found a bug or have a feature request?
Please open an issue on [GitHub](https://github.com/getsettalk/react-native-advanced-checkbox).