-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
78 lines (68 loc) · 2.56 KB
/
routes.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { View } from 'react-native'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import { Ionicons } from '@expo/vector-icons'
import { MaterialCommunityIcons } from '@expo/vector-icons';
import Modules from './pages/Home/Modules'
import Home from './pages/Home/Home';
import Profile from './pages/Profile/Profile'
import Ranking from './pages/Ranking/Ranking'
import SignForm from './pages/Forms/SignForm'
import LoginForm from './pages/Forms/LoginForm'
import Theory from './pages/Home/Theory';
import Forms from './pages/Forms/Forms';
import Config from './pages/Config/Config'
const Tab = createBottomTabNavigator();
export const Routes = () => {
return(
<Tab.Navigator screenOptions={{
tabBarActiveTintColor: '#1ED616',
tabBarInactiveTintColor: 'gray',
tabBarLabelPosition: 'below-icon',
tabBarStyle:{
borderTopWidth: 0,
elevation: 0,
backgroundColor: '#fff',
paddingTop: 10,
paddingBottom: 10,
height: 60
}
}}>
<Tab.Screen name='Home' component={Home} options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<View>
<MaterialCommunityIcons name="home" color={color} size={size} />
</View>
)
}}
/>
<Tab.Screen name='Ranking' component={Ranking} options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<View>
<MaterialCommunityIcons name="trophy-variant" color={color} size={size} />
</View>
)
}}
/>
<Tab.Screen name='Profile' component={Profile} options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<View>
<MaterialCommunityIcons name="account" color={color} size={size} />
</View>
)
}}
/>
<Tab.Screen name='Config' component={Config} options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<View>
<MaterialCommunityIcons name="cog" color={color} size={size} />
</View>
)
}}
/>
</Tab.Navigator>
);
}