Skip to content

Instantly share code, notes, and snippets.

@libcorrales
Created Aug 10, 2021
Embed
What would you like to do?
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