-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignUpScreen.js
More file actions
63 lines (63 loc) · 1.57 KB
/
SignUpScreen.js
File metadata and controls
63 lines (63 loc) · 1.57 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
import React, { Component } from "react";
import { Alert, Text } from "react-native";
import {
Button,
Container,
Header,
Content,
Left,
Right,
Body,
Title,
Form,
Item,
Input
} from "native-base";
export default class SignUpScreen extends Component {
render() {
return (
<Container>
<Header>
<Left />
<Body>
<Title>Sign up</Title>
</Body>
<Right>
<Button transparent onPress={() => {this.props.history.push('/login')}}>
<Text>Log in</Text>
</Button>
</Right>
</Header>
<Content>
<Form>
<Item>
<Input placeholder="Name" />
</Item>
<Item>
<Input placeholder="Postal code" />
</Item>
<Item>
<Input placeholder="Username" />
</Item>
<Item last>
<Input placeholder="Password" />
</Item>
<Button full onPress={() => {
Alert.alert(
'Check your email',
'We would normally send you a verification email here but since this is a demo, you can login without a username or password. ',
[
{
text: 'Go to Log In',
onPress: () => this.props.history.push('/login')
}
]
)}}>
<Text style={{color: '#fff'}}>Sign up</Text>
</Button>
</Form>
</Content>
</Container>
);
}
}