mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
Improve loading error handling on Android WebView
Summary: Loading invalid urls will happen in normal use so this line should be console.warn instead. Actually ios WebView uses console.warn for this. See https://github.com/facebook/react-native/issues/2904. Closes https://github.com/facebook/react-native/pull/9623 Differential Revision: D3815167 Pulled By: spicyj fbshipit-source-id: 0badb811b79d89d54c70b41692c609da0a3ef169
This commit is contained in:
parent
367c71241a
commit
5ba40fe6ef
@ -293,7 +293,7 @@ class WebView extends React.Component {
|
||||
var {onError, onLoadEnd} = this.props;
|
||||
onError && onError(event);
|
||||
onLoadEnd && onLoadEnd(event);
|
||||
console.error('Encountered an error loading page', event.nativeEvent);
|
||||
console.warn('Encountered an error loading page', event.nativeEvent);
|
||||
|
||||
this.setState({
|
||||
lastErrorEvent: event.nativeEvent,
|
||||
|
Loading…
x
Reference in New Issue
Block a user