Update Guide.md

This commit is contained in:
Thibault Malbranche 2019-03-01 01:20:40 +01:00 committed by GitHub
parent 06c1bb0657
commit 1b54a37978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class MyWeb extends Component {
render() {
return (
<WebView
source={{uri: 'https://infinite.red/react-native'}}
source={{uri: 'https://facebook.github.io/react-native/'}}
/>
);
}
@ -65,7 +65,7 @@ class MyWeb extends Component {
return (
<WebView
ref={ref => (this.webview = ref)}
source={{uri: 'https://infinite.red/react-native'}}
source={{uri: 'https://facebook.github.io/react-native/'}}
onNavigationStateChange={this.handleWebViewNavigationStateChange}
/>
);
@ -102,7 +102,7 @@ class MyWeb extends Component {
// redirect somewhere else
if (url.includes('google.com')) {
const newURL = 'https://infinite.red';
const newURL = 'https://facebook.github.io/react-native/';
const redirectTo = 'window.location = "' + newURL + '"';
this.webview.injectJavaScript(redirectTo);
}