react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

Performance compared to using native PNG support

Open samuelneff opened this issue 5 years ago • 4 comments

Does anyone have stats on the performance of react-native-svg compared to displaying a png?

I saw an issue here where a screen with a bunch of svgs in a flat list was taking 1-2 seconds to load. Is that normal? Are people using react-native-svg to display lots of icons in their app or would using a large down-scaled PNG be better?

samuelneff avatar Jun 15 '20 21:06 samuelneff

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Aug 15 '20 02:08 stale[bot]

@samuelneff great question, I think it definitely can slowdown rendering for something like a background pattern with many different pattern elements, plus "quality" of SVG in terms of how many paths and etc. But these are just thoughts that need a check.

pronevich avatar Oct 01 '21 14:10 pronevich

@samuelneff This is a great question, I've also wondered about this for a while now, hoping someone comes with a performance and build size statistic comparison or something

CRIMSON-CORP avatar Sep 22 '22 09:09 CRIMSON-CORP

Need fix : I saw an issue here where a screen with a bunch of svgs in a flat list was taking 1-2 seconds to load.

Dhanapal03 avatar Feb 03 '24 09:02 Dhanapal03