webview not working on Android 10
See original GitHub issueSince 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
Screenshots/Videos: White screen and loop loading on Android Nexus 5 API 29
Environment:
- OS: Android
- OS version: 10
- react-native version: 0.61.2
- react-native-webview version: ^7.4.3
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:29 (1 by maintainers)
Top GitHub Comments
same problem… need solution…
Same problem, need solution for this bugs. Happen in Samsung Galaxy Note 10