jodhman / react-eyedrop

Seamlessly integrate a static typed, fully-tested color-picking React component/hook!
24 stars 11 forks source link

Using in webview always return white as the color #63

Open AdamLee321 opened 1 year ago

AdamLee321 commented 1 year ago

I am using this library in my react app and all is working as expected, but when I open the web app in a web view in my React Native project the color returned is always white. However, when I run the web app in the mobile browser the color is returned correctly. Would you be able to provide some insight into this issue?

EDIT: Is there anyway I could get the x and y coordinates of the selected pixels? That could help debug the issue.

jodhman commented 1 year ago

Hmm... it could be related to how the element is made into a canvas, and how that might differ for a React Native app, but just spitballing here 🤔 I'm very pressed on time these days, and there is much I want done for this library. I will try to find some time to debug this