-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVideoView.js
More file actions
42 lines (36 loc) · 1 KB
/
VideoView.js
File metadata and controls
42 lines (36 loc) · 1 KB
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
'use strict';
var React = require('react-native');
var VideoList = require('./VideosList');
var Playlist = require('./Playlist');
var {
StyleSheet,
NavigatorIOS,
Component
} = React;
var styles = StyleSheet.create({
container: {
flex: 1
}
});
class Featured extends Component {
render() {
return (
<NavigatorIOS
ref="nav"
style={styles.container}
initialRoute={{
title: 'Your Youtube Channel',
component: VideoList,
rightButtonTitle: 'Catégories',
onRightButtonPress: () => {
this.refs.nav.navigator.push({
title: "Categories",
component: Playlist,
rightButtonTitle: '',
onRightButtonPress: () => {this.refs.nav.navigator.pop();}
});}
}}/>
);
}
}
module.exports = Featured;