-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mypagechange.js
123 lines (121 loc) · 4.47 KB
/
Mypagechange.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import React, {Component} from 'react';
import {View, Text, StyleSheet, TouchableOpacity, TextInput} from 'react-native';
import {DrawerActions} from 'react-navigation';
import cstyle from './Styles';
import {Header} from 'react-native-elements';
import IonIcon from 'react-native-vector-icons/Ionicons';
export default class Mypagechange extends React.Component{
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.greycontainer}>
<IonIcon name='ios-book' size={50} color='#555' />
</View>
<View style = {{flex:1}}>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>닉네임</Text>
<TextInput style = {styles.inputtext}/>
<TouchableOpacity style = {styles.duplbtn}><Text style = {styles.duplbtntext}>중복확인</Text></TouchableOpacity>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>이메일</Text>
<Text style = {styles.secondtext}>[email protected]</Text>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>생년월일</Text>
<Text style = {styles.secondtext}>19980225</Text>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>연령</Text>
<Text style = {styles.secondtext}>20대</Text>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>성별</Text>
<Text style = {styles.secondtext}>여성</Text>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>비밀번호</Text>
<TextInput style = {styles.inputpass} secureTextEntry
onSubmitEditing={()=> this.refs.txtPassword.focus()}/>
</View>
<View style = {styles.textcontainer}>
<Text style = {styles.firsttext}>비밀번호 확인</Text>
<TextInput style = {styles.inputpass} secureTextEntry
ref = {"txtPassword"}/>
</View>
<View style = {styles.btncontainer}>
<TouchableOpacity style = {styles.greenbtn}><Text style = {styles.btntext}>저 장</Text></TouchableOpacity>
</View>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
greycontainer:{
backgroundColor: '#F2F2F2',
height: 100,
justifyContent: 'center',
alignItems: 'center',
},
textcontainer: {
flexDirection: 'row',
paddingVertical: 10,
borderBottomWidth: 1,
borderColor: '#DDD',
alignItems: 'center',
},
inputtext:{
paddingLeft: 10,
height: 35,
width: 150,
backgroundColor: '#F2F2F2'
},
duplbtn: {
width: 110,
height: 35,
backgroundColor: '#52C8B2',
justifyContent: 'center',
alignItems: 'center',
},
duplbtntext: {
color: '#FFF',
fontSize: 18,
},
firsttext: {
width: 120,
paddingLeft: 20,
alignItems: 'center',
},
secondtext: {
paddingLeft: 10,
alignItems: 'center',
fontSize: 18,
},
inputpass: {
width: 260,
backgroundColor: '#F2F2F2',
height: 35,
},
btncontainer:{
paddingTop:10,
justifyContent: 'center',
alignItems: 'center',
},
greenbtn:{
width: 150,
paddingVertical: 3,
backgroundColor: '#52C8B2',
justifyContent: 'center',
alignItems: 'center',
},
btntext: {
fontSize:18,
color: '#FFF'
},
});