Skip to content

Can i forward ref WithSkiaWeb #1910

Answered by wcandillon
lucas-garrido asked this question in Q&A
Discussion options

You must be logged in to vote

Got it. Currently this is not supported. Is there a way you could rewrite your app to not need to pass properties to the getComponent object? For instance using this method: https://shopify.github.io/react-native-skia/docs/getting-started/web#using-defered-component-registration

Now here's a workaround. You can take the code from: https://github.com/Shopify/react-native-skia/blob/main/package/src/web/WithSkiaWeb.tsx (LoadSkiaWeb is available via @shopify/react-native-skia/lib/module/web and Platform, you can import from react-native is you use react native web or this not it means you are running web). And modify this code to have a props property which you can pass down to <Inner />.

If …

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@wcandillon
Comment options

@lucas-garrido
Comment options

@wcandillon
Comment options

Answer selected by lucas-garrido
@lucas-garrido
Comment options

@lucas-garrido
Comment options

@YOEL311
Comment options

@wcandillon
Comment options

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