seekshiva / react-native-remote-svg

Adds support for loading svg images in React Native
MIT License
185 stars 71 forks source link

Update svg rendering approach #45

Open tarik02 opened 5 years ago

tarik02 commented 5 years ago

Normally svg is rendered using backgroundImage in web.

seekshiva commented 5 years ago

How is this better than rendering the svg directly in DOM?

tarik02 commented 5 years ago

@seekshiva now svg always cover the whole webview.

seekshiva commented 5 years ago

The height: 100%; width: 100% that was assigned to svg tag also ensured that the svg covered the whole webview. Was there any scenario where it wasn't covering the WebView fully?