native-html / plugins

Plugins for react-native-render-html
MIT License
55 stars 18 forks source link

Is there a way to apply styles to the WebView? #6

Closed mllngtn closed 5 years ago

mllngtn commented 5 years ago

Hi,

A mysterious black 'border' is showing at the bottom of my WebView on iOS: Screen Shot 2019-09-13 at 11 20 30 AM

It looks like this is a known issue with react-native-webview - the fix is to specify a transparent background color for the WebView: https://stackoverflow.com/questions/41188362/react-native-webview-rendering-unexpected-border-at-bottom

My question is: is there any way to add styles to the WebView component using this module (I can obviously apply styles to the table, but can't figure out how to make changes to the WebView itself)?

Thanks!

jsamr commented 5 years ago

@mllngtn Have you tried with webviewProps? You should be able to pass a style prop through it.

mllngtn commented 5 years ago

@jsamr Thank you! I am a fool and somehow skipped over that section of the docs