-
Notifications
You must be signed in to change notification settings - Fork 488
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
Web Animations Broken #2943
Comments
If it helps with debugging, our Storybook usage of Skia animations is reporting the following error: |
Any chance we could also add it as an example app? For RN Web I have a
remotion project in apps but it looks like a setup such has yours
would be useful? If we have it in apps/, I could fix the issue pretty
quickly I think.
…On Wed, Feb 5, 2025 at 10:18 PM Nathan Ahn ***@***.***> wrote:
If it helps with debugging, our Storybook usage of Skia animations is reporting the following error: "x" is read-only (where x is a shared value). I haven't been able to reproduce the error in Next.js.
—
Reply to this email directly, view it on GitHub or unsubscribe.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
For sure! I'll see if I can get a simpler minimum reproducible example, since Solito is a bit heavy for just an example. Ideally, I think it'd make most sense to have an Expo Router example (assuming this issue exists in Expo Router as well). However, Skia is currently broken in Expo Router due to #2914 (which I guess is another great reason for us to have it in Once I get the chance this afternoon, I'll create an Expo Router minimum reproducible app in |
If we have this to the monorepo, I think it would be very exciting 🙏
…On Thu, Feb 6, 2025 at 3:25 PM Nathan Ahn ***@***.***> wrote:
For sure! I'll see if I can get a simpler minimum reproducible example, since Solito is a bit heavy for just an example. Ideally, I think it'd make most sense to have an Expo Router example (assuming this issue exists in Expo Router as well). However, Skia is currently broken in Expo Router due to #2914 (which I guess is another great reason for us to have it in apps).
Once I get the chance this afternoon, I'll create an Expo Router minimum reproducible app in apps to guard against both this issue and #2914 in the future. If this issue isn't reproducible in Expo Router, then I'll resort to likely a Solito or pure React Native Web reproduction of this animation bug.
—
Reply to this email directly, view it on GitHub or unsubscribe.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Created Expo Router demo in #2949! Holding off on Solito unless absolutely necessary for reproducibility, since Solito is quite complex and can be difficult to maintain as an example. (+ Expo Router is actually mentioned in the docs for web support). |
This issue has been partially fixed in v1.11.6! We're now seeing some of our animations working. However, there's still a few that aren't with the following errors:
|
I don't have a full reproducible example yet (waiting on #2958 or #2949), but I've pinpointed the issue in our codebase to Reanimated Shared Values with const TextComponent = () => {
const x = useDerivedValue(() => 0, []);
return <Text font={font} text={text} x={x} color={color} {...props} />;
} |
Same here. Using a library like this one with the latest version of Skia 1.11.8 on the web : https://github.com/doublelam/react-native-free-canvas The animation does not work. Also when a rerender occur with a different
To reproduce in summary :
|
I was able to kindof fix it by adding the This "fix" the drawing animation and the error when my
|
Related issue...
Uncaught TypeError: Cannot assign to read only property 'colors' of object '#' |
Can you provide a small standalone/reproducible example? You can also contribute the example to https://github.com/Shopify/react-native-skia/tree/main/external-apps/expo-router-app, we can test it there |
Sure, I can do that. |
Hey @wcandillon we are also having the same issues, added a minimal example in #2996, hope it helps testing! |
Most of the issues seem to be fixed in 1.11.11! Thanks @wcandillon, added a new example in #3000 as there seems to be a loose end |
@wcandillon Added an example for the drawing problems : #3001 |
Is there any change you could update the example to be smaller and
help me understand quicker the root cause issue?
…On Wed, Mar 5, 2025 at 6:31 PM JohnWilliamForcier-Spiria ***@***.***> wrote:
@wcandillon Added an example for the drawing problems : #3001
—
Reply to this email directly, view it on GitHub or unsubscribe.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Not sure I can really simplify it. The problem is really with the |
@JohnWilliamForcier-Spiria are you still getting that issue with v1.11.11?, my issues with path where solved by that one, but I still have the issue in #3000 |
@agustinferrari Yes I still have the issue. We can see it in my PR #3001 |
Description
Looks like web animations are broken on the newest version. I don't know the exact version this bug was introduced in, but I can confirm that our web animations were working in v1.7.6. As far as I can tell, this affects all Skia animations using Reanimated.
Expected: Blue square in reproduction slides back and forth.
Actual: Blue square in reproduction does not move.
React Native Skia Version
1.11.4
React Native Version
React Native Web: 0.19.12
Using New Architecture
Steps to Reproduce
https://github.com/nathan-ahn/skia-web-animation-bug
Reproducing
yarn install
yarn web
(Pink square included to demonstrate Reanimated is working)
Notes
I usually prefer to use Expo for minimum reproducible examples but can't until #2914 is resolved. I'm using the same Solito setup to that we use in production to get Skia web to work. I don't believe that any of the Next.js workarounds are causing this issue, but happy to reproduce using Expo Router once #2914 is fixed.
Snack, Code Example, Screenshot, or Link to Repository
https://github.com/nathan-ahn/skia-web-animation-bug
The text was updated successfully, but these errors were encountered: