# react-native-color-panel

> React Native color picker component for iOS and Android

Latest version **1.0.1** (published 2019-02-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-02-19 |
| First published | 2019-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 77.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ato |
| Maintainers | atoami |
| Keywords | react-native, react, android, ios, color, picker, panel, palette |

## Links

- npm: https://www.npmjs.com/package/react-native-color-panel
- npm.io page: https://npm.io/package/react-native-color-panel

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.1

## 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

- 1.0.1 (latest) — 2019-02-19
- 1.0.0 — 2019-02-19

## README

# react-native-color-panel

<div>
<img width="200" height="350" style="float: left" src="https://user-images.githubusercontent.com/17483938/53002929-c8def500-3425-11e9-9b5f-02948b3aad98.gif" />
<img width="200" height="350" style="float: left" src="https://user-images.githubusercontent.com/17483938/53003144-3559f400-3426-11e9-8212-6a7cd27d42f0.PNG" />
<img width="200" height="350" style="float: left" src="https://user-images.githubusercontent.com/17483938/53003146-3559f400-3426-11e9-9752-5c0c73afa92e.PNG" />
</div>

## Getting started

`$ npm install react-native-color-panel --save`

or

`$ yarn add react-native-color-panel`

### Mostly automatic installation

`$ react-native link react-native-color-panel`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-color-panel` and add `RNColorPanel.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNColorPanel.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.ato.reactlibrary.RNColorPanelPackage;` to the imports at the top of the file
  - Add `new RNColorPanelPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-color-panel'
  	project(':react-native-color-panel').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-color-panel/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-color-panel')
  	```

## Usage
```javascript
import ColorPanel from 'react-native-color-panel';

<ColorPanel
  style={{ flex: 1 }}
  fullColor={true}
  color={this.state.selectedColor}
  brightnessLowerLimit={0}
  onColorChange={color => this.setState({ selectedColor: color })}
/>
```

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