-
Notifications
You must be signed in to change notification settings - Fork 0
/
Routes.tsx
28 lines (25 loc) · 904 Bytes
/
Routes.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
import React from 'react'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Home from './src/pages/Home'
import Aulas from './src/pages/Aulas'
const Tab = createBottomTabNavigator();
export default function MyTabs() {
return (
<NavigationContainer>
<Tab.Navigator initialRouteName="Home">
<Tab.Screen name="Home" component={Home} options={{
tabBarIcon: () => (
<MaterialCommunityIcons name="home" size={32} />
),
}} />
<Tab.Screen name="Aulas" component={Aulas} options={{
tabBarIcon: () => (
<MaterialCommunityIcons name="school" size={32} />
),
}} />
</Tab.Navigator>
</NavigationContainer>
);
}