# react-native-sonwan-test

> A liteweight checkbox component for react native. It works on Android, iOS and Expo web.

Latest version **1.0.1** (published 2020-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-sonwan-test
pnpm add react-native-sonwan-test
yarn add react-native-sonwan-test
bun add react-native-sonwan-test
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-26 |
| First published | 2020-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 139.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bilarslan |
| Maintainers | webrangeriit |
| Keywords | react-native, react-native-component, react-native-checkbox, react-native-checkbox-lite, checkbox, checkbox-lite, check-box, check, box, react-component, ios, android, expo |

## Links

- npm: https://www.npmjs.com/package/react-native-sonwan-test
- Repository: https://github.com/bilarslan/react-native-checkbox-lite
- Homepage: https://github.com/bilarslan/react-native-checkbox-lite#readme
- Issues: https://github.com/bilarslan/react-native-checkbox-lite/issues
- npm.io page: https://npm.io/package/react-native-sonwan-test

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-26
- 1.0.0 — 2020-12-26

## README

# :white_check_mark: react-native-checkbox-lite
A liteweight checkbox component for react native. It works on Android, iOS and Expo web. 
No dependency installation required.

## :blue_book: Installation:

Install the component through npm using:

```
npm i react-native-checkbox-lite
```

## :microscope: Example:
```js
import React from 'react';
import { StyleSheet, View } from 'react-native';

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

export default function App() {

  const [isChecked, setIsChecked] = React.useState(true);

  function toogleCheckBox() {
    setIsChecked(!isChecked);
  }

  return (
    <View style={styles.container}>
      <CheckBox text={'CheckBox Text'} isChecked={isChecked} onPress={toogleCheckBox} checkBoxColor={'#2980b9'} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

```

## :coffee: API


Props              | Type     | Optional | Default     | Description
----------------- | -------- | -------- | ----------- | -----------
style  | StyleSheet style  | true |   |   Style object of checkbox container
checkBoxSize  | int |true | 24  | Pixel size of checkbox image
checkBoxColor   |  string | true | #000 | Hex color code of checkbox image
isChecked  | bool |true | false  | Checkbox checked state
onPress | function | true |   | Callback  function when pressed
text   | string | true | Checkbox Text | Text that will be displayed along the checkbox
textStyle   |  StyleSheet style  | true  | | Style object of the text

## :wrench: Issues

Issues are welcome. Please create a new issue under the issues tab.

**MIT Licensed**

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