-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedScreen.js
107 lines (89 loc) · 1.99 KB
/
feedScreen.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
'use strict';
var React = require("react-native");
var {
Component,
StyleSheet,
Text,
Image,
TextInput,
TouchableHighlight,
View,
} = React;
var SettingScreen = require("./SettingScreen.js");
class FeedScreen extends Component {
constructor(props) {
super(props);
}
render() {
return (
<View style={styles.container}>
<Text>
This will display many feeds!
</Text>
<TouchableHighlight onPress={(this.goSetting.bind(this))} style={styles.settingButton} >
<Image style={styles.settingIcon}source={require('./asserts/img/icon-setting.png')} />
</TouchableHighlight>
</View>
);
}
goSetting() {
this.props.navigator.push({
title: 'Setting',
name: 'setting',
component: SettingScreen
});
}
};
var styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
padding: 30,
marginTop: 65
},
title: {
fontSize: 18,
marginBottom: 10
},
settingButton: {
position: 'absolute',
right: 16,
bottom: 16,
},
settingIcon: {
width: 80,
height: 80,
},
settingIconContainer: {
backgroundColor: '#999'
},
formInput: {
height: 36,
padding: 10,
marginRight: 5,
marginBottom: 5,
marginTop: 5,
flex: 1,
fontSize: 18,
borderWidth: 1,
borderColor: "#555555",
borderRadius: 8,
color: "#555555"
},
button: {
height: 36,
flex: 1,
backgroundColor: "#555555",
borderColor: "#555555",
borderWidth: 1,
borderRadius: 8,
marginTop: 10,
justifyContent: "center"
},
buttonText: {
fontSize: 18,
color: "#ffffff",
alignSelf: "center"
},
});
module.exports = FeedScreen;