-
-
Save libcorrales/10fb3498be6b10e70d6917f689517cb6 to your computer and use it in GitHub Desktop.
React Navigation - Tabbed 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 { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | |
const Tab = createBottomTabNavigator(); | |
const App = () => { | |
return ( | |
<NavigationContainer> | |
<Tab.Navigator> | |
<Tab.Screen name="Welcome" component={WelcomeScreen} /> | |
<Tab.Screen name="Greeting" component={GreetingScreen} /> | |
</Tab.Navigator> | |
</NavigationContainer> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment