-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
45 lines (43 loc) · 1.31 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
import 'react-native-gesture-handler';
import React from 'react';
import CollectionNavigator from './components/Collection/CollectionNavigator';
import SetsNavigator from './components/Sets/SetsNavigator';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
initialRouteName={'Sets'}
tabBarOptions={{
activeTintColor: '#e91e63',
}}
>
<Tab.Screen
name="Sets"
component={SetsNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons
name="pokeball"
color={color}
size={size}
/>
),
}}
/>
<Tab.Screen
name="Collection"
component={CollectionNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="cards" color={color} size={size} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}