-
-
Save libcorrales/79179e6b5f572b99db6a4c20612bada0 to your computer and use it in GitHub Desktop.
React Navigation - Drawer Sample - App.js
This file contains 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 * as React from 'react'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import { createDrawerNavigator } from '@react-navigation/drawer'; | |
const Drawer = createDrawerNavigator(); | |
const App = () => { | |
return ( | |
<NavigationContainer> | |
<Drawer.Navigator initialRouteName="Welcome"> | |
<Drawer.Screen name="Welcome" component={WelcomeScreen} /> | |
<Drawer.Screen name="Greeting" component={GreetingScreen} /> | |
</Drawer.Navigator> | |
</NavigationContainer> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment