react-native-color-picker icon indicating copy to clipboard operation
react-native-color-picker copied to clipboard

Not Giving Colors Except Black Color

Open monicse09ku opened this issue 4 years ago • 0 comments

I am using react-native-color-picker and every time I click the it is giving me black color irrespective of where ever I click. I am not finding such issues anywhere. Following is my code

onColorChange(color) {
    console.log(color)
}

<ColorPicker
    oldColor='purple'
    color={this.state.color}
    onColorChange={this.onColorChange}
    onColorSelected={color => alert(`Color selected: ${color}`)}
    onOldColorSelected={color => alert(`Old color selected: ${color}`)}
    style={{height: 200, width: 200}}
    hideSliders={true}
/>

And the responses I received on clicking in different areas

{h: 53.023091807183505, s: 0, v: 0}

{h: 124.51081849529443, s: 0, v: 0}

{h: 205.9255659745072, s: 0, v: 0}

Any help is highly appreciable.

monicse09ku avatar Jul 23 '20 10:07 monicse09ku