-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainTab.js
More file actions
22 lines (18 loc) · 843 Bytes
/
Copy pathMainTab.js
File metadata and controls
22 lines (18 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import CustomTabBar from '../components/CustomTabBar';
import Home from '../screens/Home';
import Search from '../screens/Search';
import Appointments from '../screens/Appointments';
import Favorites from '../screens/Favorites';
import Profile from '../screens/Profile';
const Tab = createBottomTabNavigator();
export default () => (
<Tab.Navigator tabBar={props=><CustomTabBar {...props} />}>
<Tab.Screen name="Home" component={Home} />
<Tab.Screen name="Search" component={Search} />
<Tab.Screen name="Appointments" component={Appointments} />
<Tab.Screen name="Favorites" component={Favorites} />
<Tab.Screen name="Profile" component={Profile} />
</Tab.Navigator>
);