Skip to content

Instantly share code, notes, and snippets.

@libcorrales
Created August 10, 2021 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libcorrales/10fb3498be6b10e70d6917f689517cb6 to your computer and use it in GitHub Desktop.
Save libcorrales/10fb3498be6b10e70d6917f689517cb6 to your computer and use it in GitHub Desktop.
React Navigation - Tabbed Sample - App.js
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