-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
86 lines (83 loc) · 2.31 KB
/
App.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import * as React from "react";
import { StyleSheet, Text, View, Image } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { Ionicons, AntDesign } from "@expo/vector-icons";
import Explore from "./screens/Explore";
import Inbox from "./screens/Inbox";
import Saved from "./screens/Saved";
import Trips from "./screens/Trips";
import Profile from "./screens/Profile";
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator
initialRouteName="Explore"
tabBarOptions={{ activeTintColor: "#FF5A5F" }}
>
<Tab.Screen
name="Explore"
component={Explore}
options={{
title: "EXPLORE",
tabBarIcon: ({ color }) => (
<Ionicons name="ios-search" size={24} color={color} />
)
}}
/>
<Tab.Screen
name="Saved"
component={Saved}
options={{
title: "SAVED",
tabBarIcon: ({ color }) => (
<Ionicons name="ios-heart" size={24} color={color} />
)
}}
/>
<Tab.Screen
name="Trips"
component={Trips}
options={{
title: "TRIPS",
tabBarIcon: ({ color }) => (
<Image
source={require("./assets/airbnb.png")}
style={{ height: 24, width: 24, tintColor: color }}
/>
)
}}
/>
<Tab.Screen
name="Inbox"
component={Inbox}
options={{
title: "INBOX",
tabBarIcon: ({ color }) => (
<Ionicons name="ios-chatbubbles" size={24} color={color} />
)
}}
/>
<Tab.Screen
name="Profile"
component={Profile}
options={{
title: "PROFILE",
tabBarIcon: ({ color }) => (
<AntDesign name="user" size={24} color={color} />
)
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
}
});