All Projects β†’ atoami β†’ react-native-color-panel

atoami / react-native-color-panel

Licence: MIT license
React Native Color Panel Component for iOS and Android πŸ³οΈβ€πŸŒˆ

Programming Languages

objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to react-native-color-panel

Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+1190.48%)
Mutual labels:  color, color-picker, color-palette, picker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+17800%)
Mutual labels:  color, color-picker, color-palette, picker
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (+328.57%)
Mutual labels:  color, color-picker, color-palette
javascript-color-gradient
Lightweight JavaScript library, used to generate an array of color gradients, between start and finish colors.
Stars: ✭ 54 (+157.14%)
Mutual labels:  color, color-picker, color-palette
Pixel Picker
A tiny menu bar application that helps you pick colours from your screen! πŸ”βœ¨
Stars: ✭ 318 (+1414.29%)
Mutual labels:  color, color-picker, picker
react-native-image-color-picker
Image color picker based on image source provided and return image different color palettes or average color palette
Stars: ✭ 25 (+19.05%)
Mutual labels:  color, color-picker, color-palette
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+600%)
Mutual labels:  color, color-picker, color-palette
a-color-picker
A color picker for web app
Stars: ✭ 97 (+361.9%)
Mutual labels:  color, color-picker, picker
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+1966.67%)
Mutual labels:  color, color-picker, color-palette
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+3547.62%)
Mutual labels:  color, color-picker, picker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-23.81%)
Mutual labels:  color, color-picker, color-palette
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (+28.57%)
Mutual labels:  color, color-picker, picker
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (+76.19%)
Mutual labels:  color, color-picker, color-palette
Colorbook
🎨 Color schemes for UI design - Optimized for foreground, background, border, etc. https://liyasthomas.github.io/colorbook
Stars: ✭ 148 (+604.76%)
Mutual labels:  color, color-picker, color-palette
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+319.05%)
Mutual labels:  color-picker, color-palette, picker
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+4533.33%)
Mutual labels:  color, color-picker, color-palette
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+4428.57%)
Mutual labels:  color, color-picker, picker
Colorpickerwpf
Simple color picker control for WPF
Stars: ✭ 71 (+238.1%)
Mutual labels:  color, color-picker, picker
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+6333.33%)
Mutual labels:  color, color-picker
Colorwanted
Screen color picker for Windows (Windows δΈŠηš„ε±εΉ•ε–θ‰²ε™¨)
Stars: ✭ 105 (+400%)
Mutual labels:  color, color-picker

react-native-color-panel

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
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-color-panel')
    

Usage

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 })}
/>

Props

Property Type Description
fullColor bool (default true) [iOS only] Enable or disable full color mode
color color (default 'red') [iOS only] Initial selection color
brightnessLowerLimit number (default 0) [iOS only] the lowest value of brightness
onColorChange function (default null) Callback to receive color change event

Inspiration

Color-Picker-for-iOS

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].