Ecosyste.ms: Awesome

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

https://github.com/BhavanPatel/react-native-easy-checkbox

Simple CheckBox for react-native
https://github.com/BhavanPatel/react-native-easy-checkbox

Last synced: 2 months ago
JSON representation

Simple CheckBox for react-native

Lists

README

        

# react-native-easy-checkbox
[![NPM version](https://img.shields.io/npm/v/react-native-easy-checkbox.svg)](https://www.npmjs.com/package/react-native-easy-checkbox)

[![npm](https://img.shields.io/npm/dw/react-native-easy-checkbox.svg)](https://github.com/BhavanPatel/react-native-easy-checkbox)

[![GitHub issues](https://img.shields.io/github/issues/BhavanPatel/react-native-easy-checkbox.svg)](https://github.com/BhavanPatel/react-native-easy-checkbox/issues)
[![GitHub forks](https://img.shields.io/github/forks/BhavanPatel/react-native-easy-checkbox.svg)](https://github.com/BhavanPatel/react-native-easy-checkbox/network)
[![GitHub stars](https://img.shields.io/github/stars/BhavanPatel/react-native-easy-checkbox.svg)](https://github.com/BhavanPatel/react-native-easy-checkbox/stargazers)

[![NPM](https://nodei.co/npm/react-native-easy-checkbox.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/react-native-easy-checkbox/)

Simple CheckBox for react-native

## Installation in project

```bash
npm install react-native-easy-checkbox --save

react-native link react-native-vector-icons
```

## Example
##### [Example here](https://github.com/BhavanPatel/react-native-checkbox/tree/master/Example)

## Sample usage
```javascript

import CheckBox from 'react-native-easy-checkbox';

```
```html
this._onChangeValue(value)}/>
```

## Configuration

Checkbox component all Configuration.

| Props | Option | Default | Description |
| ------ | ------ | ------ | ------ |
| name | String |checkbox | Name of checbox |
| checked | Boolean |true | State of checkbox |
| checkBoxTrueStyle | Array or Object | - | Style for True Checkbox container |
| checkBoxFalseStyle | Array or Object | - | Style for False Checkbox container |
| checkIconStyle | Array or Object | - | Style for Checkbox |
| onChange | Function | - | On touch of checkbox returns state of checkbox |