-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVideoPage.js
50 lines (45 loc) · 1.12 KB
/
VideoPage.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
42
43
44
45
46
47
48
49
50
import React from "react";
import { TouchableOpacity, View, WebView } from "react-native";
import { createStackNavigator } from "react-navigation";
import { Ionicons } from "@expo/vector-icons";
class VideoPage extends React.Component {
render() {
return (
<View
style={{
flex: 1,
padding: 5,
backgroundColor: "#eee"
}}
>
<WebView
style={{ flex: 1, }}
javaScriptEnabled={true}
source={{
uri:
"https://www.youtube.com/embed/fAoMjiFPKUw?rel=0&autoplay=0&showinfo=0&controls=0"
}}
/>
</View>
);
}
}
export default (VideoStack = createStackNavigator({
VideoPage: {
screen: VideoPage,
navigationOptions: ({ navigation }) => ({
headerTitle: "Video",
headerLeft: (
<View>
<TouchableOpacity
onPress={() => {
navigation.toggleDrawer();
}}
>
<Ionicons name="md-menu" size={35} />
</TouchableOpacity>
</View>
)
})
}
}));