-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
55 lines (52 loc) · 1.54 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
import React from 'react';
import { NavigationContainer, DefaultTheme } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
import Feather from 'react-native-vector-icons/Feather';
import MyStatusBar from './src/common/MyStatusBar';
import Home from './src/tabs/home/Home';
import Settings from './src/tabs/settings/Settings';
const navigationContainerTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
border: '#080808',
},
};
export default function App() {
return (
<NavigationContainer theme={navigationContainerTheme}>
<MyStatusBar />
<Tab.Navigator
screenOptions={{
headerShown: false,
tabBarInactiveBackgroundColor: '#121212',
tabBarActiveBackgroundColor: '#080808',
tabBarInactiveTintColor: 'white',
tabBarActiveTintColor: '#fab400',
}}
>
<Tab.Screen
name='Home'
component={Home}
options={{
tabBarLabel: 'Home',
tabBarIcon: ({ color, size }) => (
<Feather name='home' color={color} size={size} />
),
}}
/>
<Tab.Screen
name='Settings'
component={Settings}
options={{
tabBarLabel: 'Settings',
tabBarIcon: ({ color, size }) => (
<Feather name='settings' color={color} size={size} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}