Created
June 4, 2022 07:10
-
-
Save itsramiel/54fa35f40a0d827f19a2c6734663ca5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NavigationContainer } from "@react-navigation/native"; | |
import { createNativeStackNavigator } from "@react-navigation/native-stack"; | |
import Home from "../screens/Home"; | |
import Profile from "../screens/Profile"; | |
import { NavigationType } from "./types"; | |
const { Navigator, Screen } = createNativeStackNavigator<NavigationType>(); | |
const Navigation = () => { | |
return ( | |
<NavigationContainer> | |
<Navigator> | |
<Screen name="Home" component={Home} /> | |
<Screen name="Profile" component={Profile} /> | |
</Navigator> | |
</NavigationContainer> | |
); | |
}; | |
export default Navigation; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment