-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
SVG components disappearing on navigating back for Android #2254
Comments
Hi @fedpre, is there something that indicates that the issue is caused by |
Hi @kkafar, yes, if I use the normal JS stack I do not get the odd behaviour, which means that it works correctly. That's why I believe it is a |
Hey maybe it could be related to this #2065 since the svg view also has absolute position |
Could you check if the element disappears or just the zIndex doesn't work? (for example by making underling views semi-transparent). What I observed in #2065 is that views aren't sorted properly by zIndex when animating exit, but they are there. |
Description
I have written a custom SVG component to apply an overlay fading
I am on the latest
react-native-svg
version to date (15.4.0) and I am still experiencing the issue reported in this older issue here where a glitch happened just before navigating back. I checked the code that resulted in a fix in that issue and it's mostly present in the library, although there have been a regression change a whilte ago (you can check the history in the issue).Am I missing something? As you can see from the video, the SVG is clearly disappearing and it is happening to each SVG fading overlay that I use in the app. If you slow down the video, you can easily see that.
Is it possible that something got broken while making the change? Am I doing something wrong? Any possible solutions? Thanks!
Screen.Recording.2024-07-19.at.8.09.04.AM.mov
Steps to reproduce
Snack or a link to a repository
https://snack.expo.dev/tWw6cZwRQ4Cngs0gRrrMu
Screens version
3.32.0
React Native version
0.73.6
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
Pixel 4a
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: