|
@@ -0,0 +1,22 @@
|
|
1
|
+import React, {Component} from 'react';
|
|
2
|
+import {View} from 'react-native';
|
|
3
|
+
|
|
4
|
+import WebView from 'react-native-webview';
|
|
5
|
+
|
|
6
|
+type Props = {};
|
|
7
|
+type State = {};
|
|
8
|
+
|
|
9
|
+export default class WebGL extends Component<Props, State> {
|
|
10
|
+ state = {};
|
|
11
|
+
|
|
12
|
+ render() {
|
|
13
|
+ return (
|
|
14
|
+ <View style={{flex: 1}}>
|
|
15
|
+ <WebView
|
|
16
|
+ source={{uri: 'https://webglsamples.org/aquarium/aquarium.html'}}
|
|
17
|
+ automaticallyAdjustContentInsets={false}
|
|
18
|
+ />
|
|
19
|
+ </View>
|
|
20
|
+ );
|
|
21
|
+ }
|
|
22
|
+}
|