instea / react-native-color-picker

Color picker component for IOS/Android
Apache License 2.0
272 stars 65 forks source link

Not Giving Colors Except Black Color #30

Open monicse09ku opened 4 years ago

monicse09ku commented 4 years ago

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.