-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschedule.js
More file actions
51 lines (44 loc) · 886 Bytes
/
schedule.js
File metadata and controls
51 lines (44 loc) · 886 Bytes
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
51
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var SegmentedView = require('./SegmentedView.js')
var {
AppRegistry,
StyleSheet,
Text,
View,
Component,
Image,
TouchableHighlight,
PropTypes,
ScrollView
} = React;
var schedule = React.createClass({
getInitialState() {
return {index: 0}
},
render() {
return (
<View style={styles.container}>
<SegmentedView
titles={["Stream", "Hacker", "Educator"]}
index={this.state.index}
stretch
onPress={index => this.setState({ index })} />
</View>
)
}
});
var styles = StyleSheet.create({
container: {
borderWidthTop: 10,
flex: 1,
justifyContent: 'center',
backgroundColor: '#2a3139',
paddingTop: 20,
},
});
module.exports = schedule;