-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmailSignUp.js
74 lines (65 loc) · 2.25 KB
/
EmailSignUp.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
import React, { Component } from 'react';
import { View, ImageBackground, Image, Text, StyleSheet, TextInput, Button, TouchableOpacity, Dimensions } from 'react-native';
var { width, height } = Dimensions.get("window");
export default class SignUpScreen extends Component {
render() {
return (
<View >
<View style={styles.input}>
<TextInput
placeholder="Name"
onChangeText={(value) => this.setState({ name: value })}
keyboardType={"default"}
/>
</View>
<View style={styles.input}>
<TextInput
placeholder="Email"
onChangeText={(value) => this.setState({ email: value })}
keyboardType={"default"}
/>
</View>
<View>
<TouchableOpacity
style={styles.button}
onPress={
() => this.props.navigation.navigate('OrderScreen')}>
<Text style={{color:'grey'}}> Countinue </Text>
</TouchableOpacity>
</View>
<View style={{alignItems:'center'}}>
<TouchableOpacity
onPress={
() => this.props.navigation.navigate('EmailLogin')}>
<Text style={{color:'red',marginTop: 15,fontSize:15}}> Already have an account? Login </Text>
</TouchableOpacity>
</View>
</View>
);
}
}
const styles = StyleSheet.create ({
input: {
borderBottomColor:'grey',
borderBottomWidth:1,
marginTop: 10,
borderRadius: 10,
flexDirection: 'row',
alignItems: 'center',
width: width * 0.9,
height: height * 0.060,
marginLeft:15
},
button:{
width: width * 0.9,
height: height * 0.060,
borderColor: 'silver',
backgroundColor: 'silver',
borderWidth: 1,
marginTop: 50,
marginLeft:17,
borderRadius: 10,
justifyContent: 'center',
alignItems: 'center',
}
})