|
@@ -43,7 +43,7 @@ class MyWeb extends Component {
|
43
|
43
|
render() {
|
44
|
44
|
return (
|
45
|
45
|
<WebView
|
46
|
|
- source={{uri: 'https://infinite.red/react-native'}}
|
|
46
|
+ source={{uri: 'https://facebook.github.io/react-native/'}}
|
47
|
47
|
/>
|
48
|
48
|
);
|
49
|
49
|
}
|
|
@@ -65,7 +65,7 @@ class MyWeb extends Component {
|
65
|
65
|
return (
|
66
|
66
|
<WebView
|
67
|
67
|
ref={ref => (this.webview = ref)}
|
68
|
|
- source={{uri: 'https://infinite.red/react-native'}}
|
|
68
|
+ source={{uri: 'https://facebook.github.io/react-native/'}}
|
69
|
69
|
onNavigationStateChange={this.handleWebViewNavigationStateChange}
|
70
|
70
|
/>
|
71
|
71
|
);
|
|
@@ -102,7 +102,7 @@ class MyWeb extends Component {
|
102
|
102
|
|
103
|
103
|
// redirect somewhere else
|
104
|
104
|
if (url.includes('google.com')) {
|
105
|
|
- const newURL = 'https://infinite.red';
|
|
105
|
+ const newURL = 'https://facebook.github.io/react-native/';
|
106
|
106
|
const redirectTo = 'window.location = "' + newURL + '"';
|
107
|
107
|
this.webview.injectJavaScript(redirectTo);
|
108
|
108
|
}
|