import React from 'react' ; import { Text , Button } from 'react-native' ; import { HomeProps } from './types' ; import { Container } from './styles' ; const Home = ( { navigation } ) => { return ( < Container > < Text > Home Screen < /Text> < Button onPress = { ( ) => navigation . navigate ( 'Details' , { id : 'abc-123' } ) } title = "Go to Details" / > < /Container>); } ; export default Home ;