import {StackNavigationProp} from '@react-navigation/stack'; import * as React from 'react'; import {Image, StyleSheet, Text, View} from 'react-native'; import {Background, TaggSquareButton} from '../../components'; import {OnboardingStackParams} from '../../routes'; import {BackgroundGradientType} from '../../types'; import {SCREEN_WIDTH} from '../../utils'; type WelcomeScreenNavigationProps = StackNavigationProp< OnboardingStackParams, 'WelcomeScreen' >; interface WelcomeScreenProps { navigation: WelcomeScreenNavigationProps; } const WelcomeScreen: React.FC = ({navigation}) => { return ( Welcome to TAGG! Tagg is the new social networking platform for you! It will help you create your own personalized digital space where you can express who you are, along with all the moments that comprehensively define you! { navigation.navigate('BasicInfoOnboarding', {isPhoneVerified: false}); }} title={'Next'} buttonStyle={'large'} buttonColor={'purple'} labelColor={'white'} style={styles.nextButton} /> ); }; const styles = StyleSheet.create({ container: { flex: 1, /** * Set primary axis to column * Align items to centre along that primary axis and the secondary axis as well */ flexDirection: 'column', justifyContent: 'center', alignItems: 'center', }, image: { width: SCREEN_WIDTH, height: SCREEN_WIDTH, }, header: { color: '#fff', fontSize: 32, fontWeight: '600', textAlign: 'center', marginBottom: '4%', marginHorizontal: '10%', }, subtext: { color: '#fff', fontSize: 16, fontWeight: '600', textAlign: 'center', marginBottom: '15%', marginHorizontal: '10%', }, nextButton: { marginBottom: '15%', }, }); export default WelcomeScreen;