1.0.7 • Published 3 years ago
color-picker-react-native v1.0.7
Circular color picker
Simple color picker for react native
Prerequisites
Your project has to have react-native-svg
installed
npm i color-picker-react-native
cd ios
pod install
or
expo install react-native-svg
Installation
npm i color-picker-react-native
Usage
import { ColorPicker } from 'color-picker-react-native';
render() {
return (
<ColorPicker
getColor={(color) => console.log({COLOR: color})}
colorArray={['#F6AE2D', '#8367C7', '#E84855', '#C2F8CB', '#51D6FF']}
/>
);
}
Available props
name | type | required | description |
---|---|---|---|
getColor | function | yes | |
colorArray | string[] | no | should be at least 2 colors |
size | number | no |