Replies: 3 comments 2 replies
-
Oh nevermind the moveTo is used for drawing. But is there another function which can be used to offset the path ? |
Beta Was this translation helpful? Give feedback.
-
Great thx. When I am done with all the charts I am making. I'll be sharing them on github as examples to help everyone trying to use skia in react native as a thank you for the library and help. Currently even doing a gant chart with a brush to change the selection and working butter smooth. https://gyazo.com/fb23dd102cb131aa69a7cf458b9db1b8 |
Beta Was this translation helpful? Give feedback.
-
This is fantastic, let's go 💪🏻 |
Beta Was this translation helpful? Give feedback.
-
Okay so I got the path moving to work by reassinging a new skia path to the useValue with the new xPos. But now I wanted to try to get it to move by just calling the moveTo(x, 0) but that doesnt seem to have an effect. This if is called in the onActive from a touchhandler and is working. The xPos shows the correct value when dragging the path. Gif showing it in action: https://gyazo.com/a466ee59cd37131c39cd097a127eb687
Beta Was this translation helpful? Give feedback.
All reactions