-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
24 lines (20 loc) · 811 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
// Import Screens
import ShortPomodoros from './src/screens/ShortPomodoros'
import LongPomodoros from './src/screens/LongPomodoros'
const Tab = createBottomTabNavigator();
const App = () => {
return (
<NavigationContainer>
<Tab.Navigator
tabBarOptions={{labelStyle: {fontSize: 15,}, tabStyle: {justifyContent: 'center'}}}
>
<Tab.Screen name="Short" component={ShortPomodoros} options={{tabBarLabel: "0.5 Hour Pomodoros"}} />
<Tab.Screen name="Long" component={LongPomodoros} options={{tabBarLabel: "1 Hour Pomodoros"}} />
</Tab.Navigator>
</NavigationContainer>
);
}
export default App;