-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.js
62 lines (56 loc) · 1.67 KB
/
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
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
import 'react-native-gesture-handler';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import {MaterialCommunityIcons} from '@expo/vector-icons'
//Screens
import Home from './screens/home'
import Recents from './screens/recents'
import Profile from './screens/profile'
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
const Tab = createMaterialBottomTabNavigator();
const App = (props) => {
return (
<NavigationContainer>
<Tab.Navigator
swipeEnabled
initialRoute="Home"
activeColor="#02ad94"
inactiveColor="#dedede"
style={{ backgroundColor: '#000'}}
barStyle={{ backgroundColor: '#0f0f0f', padding: 4}}
>
<Tab.Screen
name="Home"
component={Home}
options={{
tabBarLabel: '',
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="home" color={color} size={28} />
),
}}
/>
<Tab.Screen
name="Recents"
component={Recents}
options={{
tabBarLabel: '',
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="camera-metering-spot" color={color} size={28} />
),
}}
/>
<Tab.Screen
name="Profile"
component={Profile}
options={{
tabBarLabel: '',
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="account" color={color} size={28} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}
export default App;