almost / react-native-html-webview

Display HTML in a UIWebView, optionally sanitizing it first
MIT License
105 stars 20 forks source link

Width of webview? #16

Closed vince-rowe closed 8 years ago

vince-rowe commented 8 years ago

Hi there,

Is there a way of setting the width of the embedded webview? Basically it seems to always want to be 100%, so if my container that it sits in takes up say 70% because it either has a set width or padding, the webview shoots off the side of the app. The only way to contain it seems to be setting a width in the body tag of the HTML which clearly doesn't allow for mobile device width adjustments / calculations etc.

Hope this makes sense.

Vince