-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(🌍): Fix RN Web support #2954
Conversation
🎉 This PR is included in version 1.11.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@daniel112 let us know if you can share a reproduction with us |
Sure thing @wcandillon let me know if I'm missing something here |
it seems like it's the same error as #2941 if I modify the
the app loads fine |
yes indeed, I am trying to figure out why this is needed and if there is a
way for us to enforce this so we can avoid these issues in the future.
But regardless, I should be able to publish a fix for it tomorrow.
…On Tue, Feb 11, 2025 at 9:50 PM Daniel Yo ***@***.***> wrote:
it seems like it's the same error as #2941
<#2941>
if I modify the
***@***.***/react-native-skia/lib/module/renderer/Canvas.js
with import React
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
the app loads fine
—
Reply to this email directly, view it on GitHub
<#2954 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVTFVWPHR62TPXJ7AIL2PJPCLAVCNFSM6AAAAABWXTHH6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJSGAZTOOJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: daniel112]*daniel112* left a comment
(Shopify/react-native-skia#2954)
<#2954 (comment)>
it seems like it's the same error as #2941
<#2941>
if I modify the
***@***.***/react-native-skia/lib/module/renderer/Canvas.js
with import React
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
the app loads fine
—
Reply to this email directly, view it on GitHub
<#2954 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVTFVWPHR62TPXJ7AIL2PJPCLAVCNFSM6AAAAABWXTHH6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJSGAZTOOJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I understand the issue more holistically now, will publish a fix for it
tomorrow, thank you for the repro
On Tue, Feb 11, 2025 at 9:55 PM William Candillon ***@***.***>
wrote:
… yes indeed, I am trying to figure out why this is needed and if there is a
way for us to enforce this so we can avoid these issues in the future.
But regardless, I should be able to publish a fix for it tomorrow.
On Tue, Feb 11, 2025 at 9:50 PM Daniel Yo ***@***.***>
wrote:
> it seems like it's the same error as #2941
> <#2941>
>
> if I modify the
> ***@***.***/react-native-skia/lib/module/renderer/Canvas.js
> with import React
>
> import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
>
> the app loads fine
>
> —
> Reply to this email directly, view it on GitHub
> <#2954 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACKXVTFVWPHR62TPXJ7AIL2PJPCLAVCNFSM6AAAAABWXTHH6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJSGAZTOOJVGM>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
> [image: daniel112]*daniel112* left a comment
> (Shopify/react-native-skia#2954)
> <#2954 (comment)>
>
> it seems like it's the same error as #2941
> <#2941>
>
> if I modify the
> ***@***.***/react-native-skia/lib/module/renderer/Canvas.js
> with import React
>
> import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
>
> the app loads fine
>
> —
> Reply to this email directly, view it on GitHub
> <#2954 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACKXVTFVWPHR62TPXJ7AIL2PJPCLAVCNFSM6AAAAABWXTHH6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJSGAZTOOJVGM>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Thanks for the prompt response! |
is the core issue just a discrepancy between how skia gets compiled into web? |
fixes #2914 #2943
This is based on the great example provided by @nathan-ahn (which we will have to merge separately unfortunately).