question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Q: Worklet version of 'getYforX' function

See original GitHub issue

Hi! First of all - thanks for your library - it`s really very great solution!

I have a question about ‘getYforX’ function realisation.
For example in ‘react-native-redash’, also from William Candillon - this functions is ‘worklet’.

https://github.com/wcandillon/react-native-redash/blob/a7d7e88ea8d00e964566f8f0c51abee74d92bdcd/src/Paths.ts#L312

Why didn’t you use them also in worklet’s maner?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrousavycommented, May 6, 2022

Yea, Skia just renders faster than SVG. It does not create a lot of unnecessary views and is in general just more performant. Try it out for yourself! 😃

0reactions
vladyslavNiemtsevcommented, May 6, 2022

Could you also, please, give me a shortest answer - why this approach (with using Skia) is more fastest and smother than react-native-svg one?

I know there is also Rainbow chart library (https://github.com/rainbow-me/react-native-animated-charts) tries to do the similar things but used Reanimated and SVG

Read more comments on GitHub >

github_iconTop Results From Across the Web

Worklets | React Native Reanimated - Software Mansion
Each worklet function can be run either on the main React Native thread if you just call that function in your code, or...
Read more >
Adding "worklet" will not resolve "tried to synchronously call ...
Description I added the "worklet" keyword inside my callback function but the error ... Reanimated version, React Native version and Platforms sections.
Read more >
The 5-min Reanimated Worklet - YouTube
In this video, we get to know animation worklets from Reanimated 2 Official announcement: ...
Read more >
react-native-reanimated 2: cannot make a function with ...
im just learning react-native-reanimated v2, but i got an issue when creating a function with 'worklet' keyword.
Read more >
Deep dive into React Native Reanimated - LogRocket Blog
Worklets are simple functions that allow us to execute JavaScript code ... we must use the component version that we can animate.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found