Add onPress on an skia image component or wrap touchable opacity from react native #995
Replies: 6 comments 4 replies
-
At the moment you need to build something to fit your own needs, tracking the position of object and in the onTouch event check if the touch is within the region. Then you can implement your own logic. |
Beta Was this translation helpful? Give feedback.
-
@wcandillon i tried something like this:
|
Beta Was this translation helpful? Give feedback.
-
Something like this maybe
width and height are just props btw, and are fixed values from outside of the component |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi guys.. I found a workaround here.. depending on the shape type, the
|
Beta Was this translation helpful? Give feedback.
-
Is the gesture handler integration helping here: https://shopify.github.io/react-native-skia/docs/animations/reanimated#element-tracking ? |
Beta Was this translation helpful? Give feedback.
-
I am trying to make the skia image clickable. I could not find anything in documentation. If i wrap touchable opacity, it gives error.
Beta Was this translation helpful? Give feedback.
All reactions