# react-native-animated-checkbox

> Minimalistic, animated and customizable component for React Native.

Latest version **1.0.2** (published 2017-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-animated-checkbox
pnpm add react-native-animated-checkbox
yarn add react-native-animated-checkbox
bun add react-native-animated-checkbox
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-11-12 |
| First published | 2017-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Alberto Schiabel [https://github.com/jkomyno] |
| Maintainers | jkomyno |
| Keywords | react-native, ui, animation, animated |

## Links

- npm: https://www.npmjs.com/package/react-native-animated-checkbox
- Repository: https://github.com/jkomyno/react-native-animated-checkbox
- Homepage: https://github.com/jkomyno/react-native-animated-checkbox#readme
- Issues: https://github.com/jkomyno/react-native-animated-checkbox/issues
- npm.io page: https://npm.io/package/react-native-animated-checkbox

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-11-12
- 1.0.1 — 2017-09-11
- 1.0.0 — 2017-09-08

## README

# react-native-animated-checkbox

Minimalistic and customizable <CheckBox /> component for React Native.
You can do things like plug in your own check Icon component, toggle the animation and change the style.

--------------------------------

[![Travis](https://img.shields.io/travis/jkomyno/react-native-animated-checkbox.svg)](https://travis-ci.org/jkomyno/react-native-animated-checkbox) [![npm](https://img.shields.io/npm/v/react-native-animated-checkbox.svg)](https://npmjs.com/package/react-native-animated-checkbox) [![npm](https://img.shields.io/npm/dm/react-native-animated-checkbox.svg)](https://npmjs.com/package/react-native-animated-checkbox) [![Issue Stats](https://img.shields.io/issuestats/i/github/jkomyno/react-native-animated-checkbox.svg)](http://github.com/jkomyno/react-native-animated-checkbox/issues)

# Installation

- `yarn add react-native-animated-checkbox`

Or, if you prefer using npm:

- `npm i -S react-native-animated-checkbox`

## Available Props

Check the [TypeScript type definition file](src/index.d.ts) for further info.

Prop          | Type   | Default   | Description
------------- | -------| --------- | -----------------------------------------
checked       | bool   | false     | if true, renders the check Icon component
animated      | bool   | true      | if true, animates to opacity of the Icon as `checked`'s value changes
duration      | number | 300       | animation duration. Considered only if `animated` === true
style         |        |           | style of the CheckBox parent container View. Check below for the default style definition
color         | string | '#F26F6F' | color of the icon, and default color of the parent's `borderColor` style
iconName      | string | 'check'   | `name` prop of react-native-vector-icons 
iconSize      | number | 15        | `size` prop of react-native-vector-icons
activeOpacity | number | 0.7       | `activeOpacity` prop of TouchableOpacity
onPress       | func   | null      | callback called when the CheckBox gets pressed.
children      | Node   | null      | optional Icon component if react-native-vector-icons/FontAwesome doesn't suit your needs.

```javascript
  const defaultStyle = {
    backgroundColor: 'transparent',
    margin: 2,
    padding: 1,
    borderRadius: 0,
    borderWidth: 2,
    borderColor: this.props.color,
  };
```

## Example (TODO)

## Contributing

PRs are obviously welcome! :octocat:

## Available scripts

- **lint**: verify that the eslint configuration is respected

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/react-native-animated-checkbox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
