seekshiva / react-native-remote-svg

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

Image has some scrollbars around it that fades away after a few seconds #42

Open lucaspinheirogit opened 5 years ago

lucaspinheirogit commented 5 years ago

Every time the screen loads, the svg image has some kind of scrollbars that fades away after 1 or 2 seconds. I't doesn matter if the width and height is fixed or auto.

<Image style={{ width: 125, height: 125 }} source={require('./img/user.svg')} />

Link to github project: https://github.com/lucaspinheirogit/PratoPratico

I'm using the latest version (2.0.3) with react-native-webview linked and working normally

image

lucaspinheirogit commented 5 years ago

A workaround solution i found is to directly change the source code to import {WebView} from 'react-native' instead of 'react-native-webview'

seekshiva commented 5 years ago

Can you add overflow: hidden; to the html/body tag style and that would make sure scrollbar is not shown. Try that and let me know.