index.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import React, { FC, useState } from 'react';
  2. import { View } from 'react-native';
  3. import { NavigationProp } from '@react-navigation/native';
  4. import { PageWrapper, Header, Button, BigText, CheckBox, Input } from '../../../components';
  5. import { NAVIGATION_PAGES } from '../../../types';
  6. type Props = {
  7. navigation: NavigationProp<any>;
  8. };
  9. const JoinUsScreen: FC<Props> = ({ navigation }) => {
  10. const [agreed, setAgreed] = useState(false);
  11. return (
  12. <PageWrapper>
  13. <Header label={'Sign Up'} />
  14. <View style={{ gap: 15 }}>
  15. <BigText>Join us. It's free!</BigText>
  16. <Input onChange={() => {}} placeholder={'Text'} header={'Username'} />
  17. <Input
  18. onChange={() => {}}
  19. placeholder={'Email'}
  20. inputMode={'email'}
  21. header={'Email address'}
  22. />
  23. <Input onChange={() => {}} placeholder={'Text'} isPrivate={true} header={'Password'} />
  24. <Input
  25. onChange={() => {}}
  26. placeholder={'Text'}
  27. isPrivate={true}
  28. header={'Confirm password'}
  29. />
  30. <CheckBox
  31. label={'I accept NM Terms & Conditions'}
  32. onChange={(b) => setAgreed(b)}
  33. value={agreed}
  34. />
  35. </View>
  36. <View style={{ marginTop: '15%' }}>
  37. <Button onPress={() => navigation.navigate(NAVIGATION_PAGES.REGISTER_ACCOUNT_DATA)}>
  38. Continue
  39. </Button>
  40. </View>
  41. </PageWrapper>
  42. );
  43. };
  44. export default JoinUsScreen;