Skip to content

Instantly share code, notes, and snippets.

@rahgurung
Last active August 22, 2022 16:50
Show Gist options
  • Save rahgurung/d46515804dae461e3ee22163dc5399c8 to your computer and use it in GitHub Desktop.
Save rahgurung/d46515804dae461e3ee22163dc5399c8 to your computer and use it in GitHub Desktop.
import * as React from 'react';
import { Text } from 'react-native';
// Imports related to navigation
import {NavigationContainer} from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
// Initialize the Tab navigator
const Tab = createBottomTabNavigator();
// We always surround navigator with NavigationContainer
function TabsNavigation() {
return (
<NavigationContainer>
<Tab.Navigator>
{/* Add your tab components here */}
</Tab.Navigator>
</NavigationContainer>
);
}
export default TabsNavigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment