question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

White blank screen when load website in a webview

See original GitHub issue

Bug description: The site that I directed with Webview is opened in the ios simulator, Although not working in the andorid simulator.

To Reproduce:
react-native init AwesomeProject cd AwesomeProject react-native run-android

&& my code

code

Expected behavior:. Work same as ios simulator

Screenshots/Videos:

Screen Shot 2020-06-01 at 01 21 55 Screen Shot 2020-06-01 at 01 22 16

Environment:

  • OS: macOS
  • OS version: 10.15.3
  • react-native version: 0.62.2
  • react-native-webview version: 10.2.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14

github_iconTop GitHub Comments

42reactions
subodhacommented, Dec 4, 2020

This can be a webview size issue. I had the same issue and fixed by adding width and height to webview

<WebView startInLoadingState={true} style = {{marginTop: 20, width: Dimensions.get('window').width, height: Dimensions.get('window').height}} source={{ uri: 'https://google.com/'}} />

3reactions
fahadmunir123commented, Aug 7, 2022

I check all the above Comments You just need to check a simple process. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve the white Screen of WebView? - Stack Overflow
I could fix it by overrinding WebViewClient class, just implement onPageFinished() doing a validation whereas the loading progress of the ...
Read more >
How I fixed a blank page issue in Android Webview component
I noticed that I opened that page from a link and that it has been loaded on a webview component instead of the...
Read more >
Blank screen in webview - Questions - Framework7 Forum
app & dom7 object loading and i can print them by console.log without any error, but again white screen shows… ws.javaScriptEnabled=true ws.
Read more >
Webview load URL opening up blank page for HTTPS
Hi All, I am working on a small app which uses webview to open up a hidden link. But https is showing up...
Read more >
Flutter Webview doesn't load or white blank page iOS and ...
If you are using android emulator, try to use http instead of https for your base url. Leave a Reply Cancel reply. Your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found