Skip to content

Instantly share code, notes, and snippets.

@itsramiel
Created June 4, 2022 07:10
Show Gist options
  • Save itsramiel/54fa35f40a0d827f19a2c6734663ca5b to your computer and use it in GitHub Desktop.
Save itsramiel/54fa35f40a0d827f19a2c6734663ca5b to your computer and use it in GitHub Desktop.
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