-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
75 lines (73 loc) · 2.26 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
64
65
66
67
68
69
70
71
72
73
74
75
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { MaterialCommunityIcons } from '@expo/vector-icons';
import ExpressScreen from './src/screens/Express/ExpressScreen';
import ConnectScreen from './src/screens/Connect/ConnectScreen';
import StudioScreen from './src/screens/Studio/StudioScreen';
import LiveScreen from './src/screens/Live/LiveScreen';
import ProfileScreen from './src/screens/Profile/ProfileScreen';
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
screenOptions={{
tabBarStyle: {
backgroundColor: '#000',
borderTopColor: '#222',
},
tabBarActiveTintColor: '#A855F7',
tabBarInactiveTintColor: '#666',
headerShown: false,
}}
>
<Tab.Screen
name="Express"
component={ExpressScreen}
options={{
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="home" size={26} color={color} />
),
}}
/>
<Tab.Screen
name="Connect"
component={ConnectScreen}
options={{
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="account-group" size={26} color={color} />
),
}}
/>
<Tab.Screen
name="Studio"
component={StudioScreen}
options={{
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="plus-circle" size={26} color={color} />
),
}}
/>
<Tab.Screen
name="Live"
component={LiveScreen}
options={{
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="broadcast" size={26} color={color} />
),
}}
/>
<Tab.Screen
name="Profile"
component={ProfileScreen}
options={{
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="account" size={26} color={color} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}