Passing animated value to Path #1012
-
|
Big fan of the Status QuoSkia already has the concept of passing animated values to components. E.g. (from docs) Aim << please answer thisHow would you animate a path node? E.g. would like to do something like this (contrived example for simplicity) Thanks to how well typed the lib is, intellisense warns me that Workaround that (almost) works << Can ignore - was trying possible solutions before bothering peopleThe above code seems to update the results in the Path not updating at all |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Here is an example of an animated path: |
Beta Was this translation helpful? Give feedback.
-
|
Update 2025: const path = useDerivedValue(() => {
const p = Skia.Path.Make();
// ...
return p;
}, []); |
Beta Was this translation helpful? Give feedback.
Here is an example of an animated path: