yuanfux / react-native-hsv-color-picker

a react native HSV(hue, saturation, value) color picker
https://snack.expo.io/@fuyuanx/react-native-hsv-color-picker
48 stars 41 forks source link

Fix ViewPropTypes error #21

Open MGYaroslav opened 3 years ago

MGYaroslav commented 3 years ago

After updating my project to expo ~41.0.0, react-native-web was also updated and in it ViewPropTypes was deprecated. So I have an error - " Module not found: Can't resolve 'react-native-web/dist/exports/ViewPropTypes' in 'MY_PATH/node_modules/react-native-hsv-color-picker/src' "

Here is an issue from react-native-web: https://github.com/necolas/react-native-web/issues/1537

P.S. I've tried workaround from that article, but it breaks this picker, I can only move picker dot, but after click I've got saturation/hue/value = NaN

vasylnahuliak commented 1 year ago

Try to use fork https://github.com/ekreative/react-native-hsv-color-picker/commit/ff2897cef64c989ad3a57c4b08daf2dbbeb88172