Repository navigation
Expand file tree
/
Copy pathApp.js
More file actions
122 lines (89 loc) · 2.33 KB
/
Copy pathApp.js
File metadata and controls
122 lines (89 loc) · 2.33 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
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
import React,{useState} from 'react'
import { TextInput,StyleSheet,SafeAreaView,View,Text,TouchableOpacity } from 'react-native';
function SignIn(){
//states
const [text, onChangeText] = React.useState(null);
const [number, onChangeNumber] = React.useState(null);
//functions
return(
<SafeAreaView style={styles.container}>
<View style={styles.innerContainer2}>
<Text style={styles.header }>CodeHouse</Text>
</View>
<View style={styles.innerContainer}>
<TextInput
style={styles.input}
onChangeText={onChangeText}
value={text}
placeholder="e-postanızı giriniz..."
placeholderTextColor="white"
/>
<TextInput
style={styles.input}
onChangeText={onChangeNumber}
value={number}
placeholder="şifrenizi giriniz..."
placeholderTextColor="white"
keyboardType="numeric"
/>
<TouchableOpacity style={styles.signInButton}>
<Text style={styles.buttonText}>Giriş yap</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.signUpButton}>
<Text style={styles.buttonText2}>Kayıt Ol</Text>
</TouchableOpacity>
</View>
</SafeAreaView>
)
}
const styles = StyleSheet.create({
container: {
flex:1,
backgroundColor:'#FF6F00',
alignItems: 'stretch',
justifyContent: 'center',
},
innerContainer2:{flex:0.2},
innerContainer:{
flex:0.4,
padding: 10,
},
header: {
color:'white',
fontWeight:'bold',
alignSelf: 'center',
fontWeight:'bold',
fontSize: 20,
},
input: {
justifyContent: 'center',
padding: 10,
height: 40,
margin: 12,
borderBottomColor: 'white',
borderBottomWidth: 1,
borderColor:'white',
padding: 10,
},
signInButton:{
marginTop:20,
height: 40,
alignSelf: 'stretch',
justifyContent: 'center',
alignItems:'center',
borderRadius: 5,
backgroundColor:'#FFA040',
},
buttonText: {fontWeight:'bold',fontSize: 16,color:'white'},
signUpButton:{
marginTop:20,
height: 40,
alignSelf: 'stretch',
justifyContent: 'center',
alignItems:'center',
borderRadius: 5,
backgroundColor:'white',
},
buttonText2: {fontWeight:'bold',fontSize: 16,color:'#FF6F00'},
})
export default SignIn;