react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

Parsing color parameter is incorrect

Open bluekyu opened this issue 4 years ago • 1 comments

https://github.com/Shopify/react-native-skia/blob/a7445c4e1cd5149d9bf8f1c1e3ce251df37faee6/package/cpp/api/JsiSkCanvas.h#L458-L473

In drawColor and clear function, SkColor type is Float32Array, but color parameter is parsed as number. It occurs Exception in HostFunction: <unknown> error in iOS. If I use number type value in the parameter ignoring Typescript errors, it is okay.

bluekyu avatar Jun 02 '22 12:06 bluekyu

nice catch thks!

wcandillon avatar Jun 02 '22 12:06 wcandillon