vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
849 stars 334 forks source link

Set ind to zero on render #108

Closed BerndSchrooten closed 1 year ago

BerndSchrooten commented 6 years ago

By not setting ind to zero, every svg component gets a different key on each render even when the component does not need to be updated. This means the whole svg is discarded by React and mounted again on each render which is costly.

BerndSchrooten commented 6 years ago

@matc4 can you have a look at this?