-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
41 lines (37 loc) · 782 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
import { WebViewBridge, FullScreenWebViewBridge } from 'react-native-webview-bridge';
const styles = StyleSheet.create({
webview: {
flex: 1,
backgroundColor: 'black',
},
});
class App extends React.Component {
constructor(props) {
super(props);
this.webview = null;
}
render() {
/*
<WebViewBridge
ref={(webview) => { this.webview = webview; }}
style={styles.webview}
source={{ uri: 'http://m.youtube.com' }}
javaScriptEnabled
domStorageEnabled
/>
*/
return (
<View style={styles.webview}>
<FullScreenWebViewBridge
style={styles.webview}
/>
</View>
);
}
}
module.exports = App;