import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import TabBarIcon from './components/TabBarIcon';
import GithubScreen from './screens/GitHubScreen'
import GitlabScreen from './screens/GitLabScreen'
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
screenOptions={({ route }) => ({
tabBarIcon: ({ focused }) => {
return <TabBarIcon {...route, focused} />;
},
})}
tabBarOptions={{
showLabel: false
}}
>
<Tab.Screen name="Github" component={GithubScreen} />
<Tab.Screen name="Gitlab" component={GitlabScreen} />
</Tab.Navigator>
</NavigationContainer>
);
}