{"size": 697, "ext": "js", "max_stars_repo_path": "src/screens/welcome/index.js", "max_stars_repo_name": "poliveira13/yourFeelingApp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/screens/welcome/index.js", "max_issues_repo_name": "poliveira13/yourFeelingApp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/screens/welcome/index.js", "max_forks_repo_name": "poliveira13/yourFeelingApp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.78125, "max_line_length": 75, "alphanum_fraction": 0.6370157819}
import React from 'react'

import { useNavigation } from '@react-navigation/native'

import { View, Text, Image } from 'react-native'

import Button from '../../components/Button'

import welcome from '../../assets/images/welcome.png'

import styles from './styles'

const Welcome = () => {
  const navigation = useNavigation()

  function navigate() {
    navigation.navigate('Home')
  }

  return (
    <>
      <View style={styles.container}>
        <Image source={welcome} style={styles.image} />
        <Text style={styles.title}>Welcome, shall we begin?</Text>
        <Button onPress={() => navigate()} primaryTextButton text={'Go'} />
      </View>
    </>
  )
}

export default Welcome
