mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 22:50:21 +08:00
Fixed WebView example
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user