forked from ufosc/Alarm-Clock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
63 lines (61 loc) · 2.04 KB
/
App.tsx
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React, { useState } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Home from './screens/Home';
import Settings from './screens/Settings';
import AlarmFeatures from './screens/AlarmFeatures';
import Alarms from './screens/Alarms';
import { DarkModeProvider } from './contexts/DarkModeContext';
const Tab = createBottomTabNavigator();
export default function App() {
// TODO: FIX DARK MODE
return (
<DarkModeProvider>
<NavigationContainer>
<Tab.Navigator initialRouteName="Home">
<Tab.Screen
name="Clock"
component={Home}
options={{
tabBarLabel: 'Clock',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="clock" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Alarms"
component={Alarms}
options={{
tabBarLabel: 'Alarms',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="alarm-multiple" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Alarm Features"
component={AlarmFeatures}
options={{
tabBarLabel: 'Alarm Features',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="mace" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Settings"
component={Settings}
options={{
tabBarLabel: 'Settings',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="cog" color={color} size={size} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
</DarkModeProvider>
);
}