Replies: 1 comment 3 replies
-
This issue is really of interest to us. Can you share a small git repo where we could reproduce the issue? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why does Canvas component requires me to pass all these props? I just want to specify style and that's it. There is a similar issue, but a co-author of the lib said is the correct behavior. Am i missing something?
Type '{ children: Element; pointerEvents: "none"; style: (AbsoluteFillStyle | { backgroundColor: string; borderRadius: number; })[]; }' is missing the following properties from type 'Pick<CanvasProps, "testID" | "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "style" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | ... 61 more ... | "accessibilityLanguage">': onPointerEnter, onPointerEnterCapture, onPointerLeave, onPointerLeaveCapture, and 10 more.
I'm on rn-skia 0.1.166 and this is how I use the Canvas:
Beta Was this translation helpful? Give feedback.
All reactions