Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Giving Colors Except Black Color #30

Open
monicse09ku opened this issue Jul 23, 2020 · 0 comments
Open

Not Giving Colors Except Black Color #30

monicse09ku opened this issue Jul 23, 2020 · 0 comments

Comments

@monicse09ku
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant