-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (25 loc) · 972 Bytes
/
App.js
File metadata and controls
33 lines (25 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import * as React from 'react';
import { Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import LeftScreen from './screens/LeftScreen';
import RightScreen from './screens/RightScreen';
import Home from './screens/Home';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import colors from './styles/colors';
//import all the screens we are going to switch
const Tab = createMaterialTopTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
initialRouteName="Home"
shifting = "true"
tabBarPosition="bottom"
>
<Tab.Screen name="International Recruitment" component={LeftScreen} />
<Tab.Screen name="Home" component={Home} />
<Tab.Screen name="Talent Leasing" component={RightScreen} />
</Tab.Navigator>
</NavigationContainer>
);
}