import React from 'react' ; import { createStackNavigator } from '@react-navigation/stack' ; import { Home } from '../pages/Home' ; import { Details } from '../pages/Details' ; const App = createStackNavigator ( ) ; export function AppRoutes ( ) { return ( < App . Navigator screenOptions = { { headerShown : false , cardStyle : { backgroundColor : '#fff' } , } } > < App . Screen name = "Home" component = { Home } / > < App . Screen name = "Details" component = { Details } / > < /App.Navigator>); }