Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mllngtn opened this issue Sep 12, 2019 · 2 comments
Closed

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

mllngtn opened this issue Sep 12, 2019 · 2 comments

Comments

@mllngtn
Copy link

mllngtn commented Sep 12, 2019

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
Copy link
Collaborator

jsamr commented Sep 13, 2019

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

@mllngtn
Copy link
Author

mllngtn commented Sep 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants