# react-native-color-wheel

> A react native reusable and color picker wheel

Latest version **0.1.7** (published 2019-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-color-wheel
pnpm add react-native-color-wheel
yarn add react-native-color-wheel
bun add react-native-color-wheel
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2019-03-26 |
| First published | 2017-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 344.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 168 |
| Maintainers | netbeast.staff |
| Keywords | color, picker, color picker, wheel, color wheel, react, native, react-native, android, ios |

## Links

- npm: https://www.npmjs.com/package/react-native-color-wheel
- Repository: https://github.com/netbeast/react-native-color-wheel
- Homepage: https://github.com/netbeast/react-native-color-wheel#readme
- Issues: https://github.com/netbeast/react-native-color-wheel/issues
- npm.io page: https://npm.io/package/react-native-color-wheel

## Dependencies (1)

- [colorsys](https://npm.io/package/colorsys.md) ^1.0.17

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2019-03-26
- 0.1.6 — 2018-12-11
- 0.1.5 — 2018-02-14
- 0.1.4 — 2017-12-07
- 0.1.3 — 2017-11-14
- 0.1.2 — 2017-10-24
- 0.1.1 — 2017-10-24
- 0.1.0 — 2017-10-24

## README

# react-native-color-wheel
![npm version](https://badge.fury.io/js/react-native-color-wheel.svg)

:art: A react native reusable and color picker wheel

## Usage

```javascript
import React, { Component } from 'react';
import { Dimensions, StyleSheet, View } from 'react-native';
import { ColorWheel } from 'react-native-color-wheel';

const Example = ({onChange}) => (
  <View style={{flex: 1}}>
    <ColorWheel
      initialColor="#ee0000"
      onColorChange={color => console.log({color})}
      onColorChangeComplete={color => onChange(color)}
      style={{width: Dimensions.get('window').width}}
      thumbStyle={{ height: 30, width: 30, borderRadius: 30}}
    />
    <ColorWheel
      initialColor="#00ee00"
      style={{ marginLeft: 20, padding: 40, height: 200, width: 200 }}
    />
  </View>
);
```

## Props

| Name                    | Description                                    | Type   |
|-------------------------|------------------------------------------------|--------|
| `initialColor`          | Initial value in hex format                    | String |
| `onColorChange`         | Callback when the value is changed or moved    | func   |
| `onColorChangeComplete` | Callback on mouseup or drag event has finished | func   |
| `thumbSize`             | Width of draggable thumb                       | Number |
| `thumbStyle`            | CSS for the draggable thumb                    | Object |

<img alt="demo screenshot" src="screenshot.png" width="350" />

PRs and issues are more than welcome.

<a href="https://getyeti.co" target="_blank">
   <img alt="works with yeti" src="works-with-yeti.png" width="100" />
</a>

> This package powers [Yeti Smart Home](https://getyeti.co) and is used in production.
Follow us in Github or https://twitter.com/netbeast_co.

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