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.

webview not working on Android 10

See original GitHub issue

Since the new update of API 29 Android 10 in December 2019, react-native-webview is not working on Android 10.

Bug description: White screen on the view

To Reproduce: <View style={{flex: 1}}> <WebView style={{flex: 1}} startInLoadingState scalesPageToFit javaScriptEnabled source={{ uri: RestConstant.grafanaLink + this.state.username, headers: { Authorization: 'Bearer ' + this.state.token, }, }} originWhitelist={['*']} domStorageEnabled={true} ignoreSslError={true} renderError={e => { return this.renderError(); }} /> </View>

Expected behavior: Show the webview from url on iOS Screen Shot 2020-02-10 at 10 58 03

Screenshots/Videos: White screen and loop loading on Android Nexus 5 API 29 Screen Shot 2020-02-10 at 11 04 30

Environment:

  • OS: Android
  • OS version: 10
  • react-native version: 0.61.2
  • react-native-webview version: ^7.4.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:29 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
imamkodei889commented, Feb 10, 2020

same problem… need solution…

14reactions
mghozyncommented, Feb 10, 2020

Same problem, need solution for this bugs. Happen in Samsung Galaxy Note 10

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Chrome and Android System Webview is not getting ...
You might often face issues in updating the chrome and Android System Webview. To fix this problem, you can reboot your device, check...
Read more >
Here's how to fix those mysterious Android WebView crashes
To use WatfordHert's method, go to the main Android Settings menu, then tap "Apps & Notifications" (just "Applications" on some phones). Find ...
Read more >
How to fix Android System WebView won't update issue?
Fix #1: Force Stop Webview App. · Fix #2: Do a soft restart. · Fix #3: Clear the Android System Webview Cache And...
Read more >
react native webview not working in android 10+
react native webview not working in android 10 or higher. It works fine in dev mode but shows just a white screen in...
Read more >
PSA: Update Android System WebView to fix crashing apps
The immediate solution to this problem involves finding the Play Store listing for Android System WebView either by visiting this link ...
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