-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSignup.js
82 lines (78 loc) · 1.67 KB
/
Signup.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
import React, {Component, useState, useEffect} from 'react';
import {
ScrollView,
Platform,
StyleSheet,
Text,
View,
TextInput,
Easing,
StatusBar,
Image,
TouchableOpacity,
Animated,
Dimensions,
Linking,
} from 'react-native';
import icon from './images/loginpic.png';
function Signup(props) {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ababab',
justifyContent: 'center',
alignItems: 'center',
},
item: {
padding: 8,
marginLeft: 30,
width: '100%',
},
input: {
borderRadius: 25,
backgroundColor: '#bdc3c7',
width: '90%',
marginLeft: 5,
},
buttonLogin: {
backgroundColor: '#d35400',
justifyContent: 'center',
alignItems: 'center',
height: 40,
borderRadius: 25,
width: '90%',
},
buttonSignUp: {
alignItems: 'center',
width: '90%',
},
});
return (
<View style={styles.container}>
<View style={styles.item}>
<Image
source={icon}
style={{
marginLeft: 75,
width: 200,
height: 100,
}}
/>
</View>
<View style={styles.item}>
<TextInput style={styles.input} placeholder="email" />
</View>
<View style={styles.item}>
<TextInput style={styles.input} placeholder="set a password" />
</View>
<View style={styles.item}>
<TouchableOpacity
style={styles.buttonLogin}
onPress={() => props.navigation.navigate('Home')}>
<Text>Sign Up!</Text>
</TouchableOpacity>
</View>
</View>
);
}
export default Signup;