Skip to content
Discussion options

You must be logged in to vote

Hey, there's no performance cost of calling a workletized function from the main JS context (it's just a regular function). Also, there's no need to have two versions of the same function, one workletized and the other not. The only cost is related to bundle size, because the function body of each worklet needs to be converted to a string by Reanimated Babel plugin so it can be eval'd on UI context.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elliotwaite
Comment options

Answer selected by elliotwaite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants