-
Notifications
You must be signed in to change notification settings - Fork 2
/
OrganizationTabs.js
36 lines (30 loc) · 1.07 KB
/
OrganizationTabs.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
import { VolunteerFeed } from './VolunteerFeed';
import {OrganizationFeed} from './OrganizationFeed';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
const Tab = createMaterialTopTabNavigator();
export const OrganizationTabs = ({navigation,userEmail}) => {
return (
<Tab.Navigator screenOptions={
{
tabBarLabelStyle:{
color: '#1A535C',
padding: 5,
fontWeight: 'bold',
fontSize: 15,
},
tabBarContentContainerStyle:{
backgroundColor: '#4ECDC459',
},
tabBarIndicatorStyle:{
backgroundColor: '#1A535C',
height: 3,
}
}
}>
<Tab.Screen name="Create">
{props => (<OrganizationFeed {...props} userEmail={userEmail}/>)}
</Tab.Screen>
<Tab.Screen name="Browse" component={VolunteerFeed} />
</Tab.Navigator>
)
}