index.tsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { FC } from 'react';
  2. import { ImageBackground, View, Text, StatusBar } from 'react-native';
  3. import { SafeAreaView } from 'react-native-safe-area-context';
  4. import type { NavigationProp } from '@react-navigation/native';
  5. import { Button } from '../../components/';
  6. import { ButtonVariants } from '../../types/components';
  7. import { styles } from './style';
  8. import { NAVIGATION_PAGES } from '../../types';
  9. type Props = {
  10. navigation: NavigationProp<any>;
  11. };
  12. const WelcomeScreen: FC<Props> = ({ navigation }) => {
  13. return (
  14. <View style={{ flex: 1 }}>
  15. <StatusBar translucent backgroundColor="transparent" />
  16. <ImageBackground
  17. style={{ flex: 1 }}
  18. source={require('../../../assets/images/welcome-background.png')}
  19. >
  20. <View style={styles.overlay} />
  21. <SafeAreaView style={styles.wrapper}>
  22. <View />
  23. <View style={{ width: 150, height: 150, alignSelf: 'center' }}>
  24. <ImageBackground
  25. source={require('../../../assets/logo-ua.png')}
  26. style={{ height: '100%' }}
  27. />
  28. </View>
  29. <View>
  30. <Text style={styles.text}>Ultimate Hub</Text>
  31. <Text style={[styles.text, styles.subText]}>For Global Explorers</Text>
  32. </View>
  33. <View style={styles.buttonsAndText}>
  34. <Button onPress={() => navigation.navigate(NAVIGATION_PAGES.REGISTER)}>
  35. Get started
  36. </Button>
  37. <Button
  38. onPress={() => navigation.navigate(NAVIGATION_PAGES.LOGIN)}
  39. variant={ButtonVariants.OPACITY}
  40. >
  41. Login
  42. </Button>
  43. <Button
  44. onPress={() => navigation.navigate(NAVIGATION_PAGES.IN_APP)}
  45. variant={ButtonVariants.OPACITY}
  46. >
  47. Use without registration
  48. </Button>
  49. </View>
  50. </SafeAreaView>
  51. </ImageBackground>
  52. </View>
  53. );
  54. };
  55. export default WelcomeScreen;