-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
SvgUri blocks rendering thread and fe filters not applied on Android in [email protected] with React Native 0.76.9 #2731
Description
Description
After upgrading to [email protected] and [email protected], We noticed that SVG filter effects (are not working properly after the upgrade.
SVGs containing filter effects render correctly when used as local components via react-native-svg-transformer.
But when rendering the same SVG via SvgUri, the app hangs and blocks the JS thread.
On Android, filter effects are not visually applied at all (even via Svg or SvgXml) after the upgrade.
This issue did not exist in [email protected] with [email protected].
Expected Behavior:
- Filter effects (<fe*>) should apply correctly on both Android and iOS.
- The app should not hang or block rendering thread when using SvgUri.
Actual Behavior
- Using SvgUri causes the app to hang indefinitely (thread blocked).
- On Android, filter effects are not visible at all.
- Only rendering it via Svg as a JSX component works partially (iOS only).
Steps to reproduce
Create a React Native app with:
[email protected]
[email protected]
Use an SVG with a tag and <fe*> elements
Render this SVG via SvgUri using a remote hosted SVG URL
Snack or a link to a repository
na
SVG version
15.11.2
React Native version
0.76.9
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
None
Build type
None
Device
Android emulator
Device model
No response
Acknowledgements
Yes