Group transform property #1631
-
Is the transform property in Group animatable? I've been trying to animate a Group to rotate with reanimated 3 but it does not animate |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, when using with the latest version of Skia ( const transform = useDerivedValue(() => {
return [
{ scaleX: scale.value },
{ scaleY: scale.value },
]
})
return (
<Canvas><Group transform={transform}>...</Group></Canvas>
) |
Beta Was this translation helpful? Give feedback.
-
There're a couple difference between RN transform and Skia transform property, for rotation Skia only supports values measured in radians and for matrix transform Skia matrices must be written as a colum major rather than row major. |
Beta Was this translation helpful? Give feedback.
Yes, when using with the latest version of Skia (
0.1.193
) and Reanimated (3.3.0
), you can create an animatable transform as: