Skip to content

Reopen : Is it possible to use third party library in worklet? #3330 #5389

Answered by MatiPl01
sumitmanral asked this question in Q&A
Discussion options

You must be logged in to vote

I can see your issue now. Probably MakeFromSVGString is not a worklet function, so you won't be able to create a Skia Path inside a worklet. The MakeFromSVGString method should be workletized in the react-native-skia library in order to make it work on the UI thread.

Usually, you won't be able to call third-party modules inside worklets because they do not provide workletized versions of exported functions/methods.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@fax1ty
Comment options

@MatiPl01
Comment options

@fax1ty
Comment options

@MatiPl01
Comment options

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