-
Notifications
You must be signed in to change notification settings - Fork 481
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
The new canvas will render an svg once and only once #2918
Comments
Thank you for the recording, Indeed a small reproduction would still
be very helpful. For instance we have this example that you could
extends maybe to show the behaviour:
https://github.com/wcandillon/react-native-skia/blob/main/apps/paper/src/Examples/API/Icons/index.tsx
…On Mon, Jan 27, 2025 at 2:03 PM Adam Gerthel ***@***.***> wrote:
Description
I just upgraded to version 1.10.2 and noticed that my svg icons are only rendering once.
React Native Skia Version
1.10.2
React Native Version
0.76.6
Using New Architecture
Enabled
Steps to Reproduce
See video, I will create a reproducible repository is needed.
Snack, Code Example, Screenshot, or Link to Repository
Here's a video where I show the issue with Canvas vs OldCanvas: https://komododecks.com/recordings/Jp6oQVqCDRjzIDj5RY7j
—
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.
|
I've created a simple reproducible example in this branch: https://github.com/AdamGerthel/react-native-skia-debugging-app/tree/fix/react-native-skia-2918 Screen.Recording.2025-01-28.at.09.35.43.movUpdate: Removed some more irrelevant clutter to clean it up a bit. The issue seems to be related to using a group with Update 2: Ok, so if I move the |
I'm a bit baffled by the issue. I can reproduce it on your app but not on our example app (fabric or old arch). Here is the code I am using for testing: https://gist.github.com/wcandillon/3fbc1ca923cf1310282d3d96eaf5e60d |
Hmm, odd indeed. I can reproduce it in my repository using the example in your gist, so it can't be the implementation itself... hmm 🤔 I tried logging the value of
That can't be right, can it? Update: It really does seems like the new |
Thank you for reporting this. This was very interesting. It looked like a side effect was applied to the svg object (with the picture size which is indeed 2000000). I can confirm that it is fixed in the latest release |
Description
I just upgraded to version
1.10.2
from a (patched)1.9.0
and noticed that my svg icons are only rendering once.React Native Skia Version
1.10.2
React Native Version
0.76.6
Using New Architecture
Steps to Reproduce
See video, I will create a reproducible repository if needed.
Snack, Code Example, Screenshot, or Link to Repository
Here's a video where I show the issue with
Canvas
vsOldCanvas
: https://komododecks.com/recordings/Jp6oQVqCDRjzIDj5RY7jThe text was updated successfully, but these errors were encountered: