forked from sgirvan/fsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signup.js
84 lines (81 loc) · 1.57 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
83
84
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Image,
KeyboardAvoidingView,
TouchableOpacity
} from 'react-native';
import { SignupForm } from './SignupForm'
import { Actions } from 'react-native-router-flux';
export class Signup extends Component {
goback() {
Actions.pop();
}
render() {
return (
<KeyboardAvoidingView
behavior="padding"
style = {styles.container}
>
<View style = {styles.logoContainer}>
<Image
style = {styles.logo}
source = {require('./logo.png')}
/>
<Text style={styles.title}>Free Finder</Text>
</View>
<View style={styles.formContainer}>
<SignupForm />
</View>
<View style={styles.buttonContainer}>
<Text style={styles.button}>
Already have an account yet?
</Text>
<TouchableOpacity onPress={this.goback}>
<Text style={styles.buttonText}> Sign in</Text>
</TouchableOpacity>
</View>
</KeyboardAvoidingView>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#3498db',
},
logo: {
width: 100,
height: 100
},
logoContainer: {
alignItems: 'center',
flexGrow: 1,
justifyContent: 'center',
},
title: {
color: "#FFF",
marginTop: 10,
textAlign: 'center',
opacity: 0.9,
},
buttonContainer: {
flexGrow: 1,
alignItems: 'flex-end',
justifyContent: 'center',
paddingVertical: 16,
flexDirection: 'row'
},
button: {
color: 'rgba(255,255,255,0.6)',
fontSize: 16
},
buttonText: {
color: '#ffffff',
fontSize: 16,
fontWeight: '500'
},
});