Open elmaxe opened 9 months ago
I experiencing the same thing while using SvgUri, have you found a workaround?
Hey @sierraleonez, Could you share a reproduction repository? The one provided by @elmaxe no longer works for me, and I couldn't reproduce the issue using the latest version in our example app.
Hi @jakex7, thank you for the response, I'm able to reproduce the issue here.
How to repro:
After I tried to inspect it, the cause of this issue is due to circle element blocking with 512x512 size, and it only happened inside flashlist, It works well on normal flatlist.
Bug
When you nest a
<Circle />
inside a<Mask />
and scale down the svg, circle will keep its initial size, and not scale down as expected. This seems to only happen for android.For the following svg component we expect the masked circle component to be 30x30 pixels, but it keeps its size of 512x512:
https://github.com/software-mansion/react-native-svg/assets/33149910/25f796d7-1186-4ca5-a926-3afac2e29d3c
I tried the same svg code on the web, and it works as expected:
Environment info
React native info output:
Library version: 14.1.0
Steps To Reproduce
Issues without reproduction steps or code are likely to stall.
git clone https://github.com/elmaxe/rnsvg-bug-repro
cd rnsvg-bug-repro
yarn
yarn android
Describe what you expected to happen: