-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSetting.js
66 lines (62 loc) · 2.23 KB
/
Setting.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
import React, {Component} from 'react';
import {View, Text, TouchableOpacity, StyleSheet} from 'react-native';
import cstyle from './Styles';
import {Header} from 'react-native-elements';
import IonIcon from 'react-native-vector-icons/Ionicons';
export default class Setting extends React.Component{
static navigationOptions = {
drawerIcon:(
<IonIcon name='md-settings' size={24} color = '#52C8B2'/>
)
}
render() {
return (
<View style = {cstyle.whitecontainer}>
<Header
leftComponent={{icon:'menu', color:'#FFF', onPress: () => this.props.navigation.dispatch(DrawerActions.openDrawer())}}
centerComponent={{text: '설정', style:{color:'#FFF'}}}
containerStyle={{backgroundColor:'#52C8BE', height:45, paddingTop:0}}
/>
<View style = {styles.topcontainer}>
<Text style = {styles.toptext}>어플리케이션 설정</Text>
</View>
<View style = {styles.midcontainer}>
<TouchableOpacity style = {styles.whitebtn}><Text style = {styles.btntext}>공지사항</Text></TouchableOpacity>
</View>
<View style = {styles.midcontainer}>
<TouchableOpacity style = {styles.whitebtn}><Text style = {styles.btntext}>많이 묻는 질문</Text></TouchableOpacity>
</View>
<View style = {styles.midcontainer}>
<TouchableOpacity style = {styles.whitebtn}><Text style = {styles.btntext}>문의 및 의견</Text></TouchableOpacity>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
topcontainer: {
height: 80,
justifyContent: 'center',
alignItems: 'center',
},
toptext: {
fontSize: 20,
},
midcontainer: {
height: 80,
justifyContent: 'center',
alignItems: 'center',
},
whitebtn: {
width: '85%',
height: 50,
justifyContent: 'center',
alignItems: 'center',
borderWidth: 1,
borderColor: '#52C8B2'
},
btntext: {
color: '#52C8B2',
fontSize: 16,
},
})