-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_layout.js
49 lines (37 loc) · 1.4 KB
/
_layout.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
import {Tabs} from 'expo-router/tabs';
import { FontAwesome,AntDesign} from '@expo/vector-icons';
import { useRouter } from 'expo-router';
export default ()=>{
const router=useRouter();
return (<Tabs screenOptions={{tabBarShowLabel:false,tabBarActiveTintColor:'indigo'}}>
<Tabs.Screen name="feed" options={{tabBarIcon:({color})=>(
<FontAwesome name="home" size={24} color={color} />
),
title:'Feed',
headerRight:()=>(
<AntDesign onPress={()=> router.push('/modal')} name="infocirlceo" size={25} color="black" />
),
headerStyle: { backgroundColor: '#FFE030' },
headerTintColor:'#1E2632',
headerTitleStyle:{fontWeight:'bold',},
}}/>
<Tabs.Screen name="search" options={{tabBarIcon:({color})=>(
<FontAwesome name="search" size={24} color={color} />
),
title:'Search',
headerRight:()=>(
<AntDesign onPress={()=> router.push('/modal')} name="infocirlceo" size={25} color="black" />
),
headerStyle: { backgroundColor: '#FFE030' },
headerTintColor:'#1E2632',
headerTitleStyle:{fontWeight:'bold',},
}}/>
<Tabs.Screen name="messages" options={{tabBarIcon:({color})=>(
<FontAwesome name="envelope" size={24} color={color} />
),
title:'Messages',
headerShown:false,
}}/>
</Tabs>
);
};