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