-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
EthereumSignUp.tsx
38 lines (34 loc) · 1.12 KB
/
EthereumSignUp.tsx
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
import React from "react";
import { StyleSheet, KeyboardAvoidingView } from "react-native";
import { responsiveHeight } from "react-native-responsive-dimensions";
import { Header } from "react-navigation-stack";
import Colors from "../../../constants/Colors";
import LargeText from "../LargeText";
import EthereumSignUpForm from "../../stateful/EthereumSignUpForm";
const styles = StyleSheet.create({
container: {
alignItems: "center",
backgroundColor: Colors.backgroundColor,
flex: 1,
justifyContent: "center",
},
});
type EthereumSignUpProps = {
onUsernameSubmit: () => void;
};
const EthereumSignUp: React.FunctionComponent<EthereumSignUpProps> = React.memo(
({ onUsernameSubmit }) => {
const OFFSET = responsiveHeight(3);
return (
<KeyboardAvoidingView
keyboardVerticalOffset={Header.HEIGHT + OFFSET}
style={styles.container}
behavior="padding"
>
<LargeText>{`Cool. Let's start by picking your Tasit username.`}</LargeText>
<EthereumSignUpForm onUsernameSubmit={onUsernameSubmit} />
</KeyboardAvoidingView>
);
}
);
export default EthereumSignUp;