mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 07:08:27 +00:00
Fixed WebView example
This commit is contained in:
parent
99bd57aef2
commit
fa6bc1c3cd
@ -75,7 +75,7 @@ var WebViewExample = React.createClass({
|
||||
<TextInput
|
||||
ref={TEXT_INPUT_REF}
|
||||
autoCapitalize="none"
|
||||
value={this.state.url}
|
||||
defaultValue={this.state.url}
|
||||
onSubmitEditing={this.onSubmitEditing}
|
||||
onChange={this.handleTextInputChange}
|
||||
clearButtonMode="while-editing"
|
||||
|
@ -210,7 +210,7 @@ var WebView = React.createClass({
|
||||
|
||||
onLoadingError: function(event: Event) {
|
||||
event.persist(); // persist this event because we need to store it
|
||||
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