forked from Trail-Traffic/Trail-Traffic-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
47 lines (44 loc) · 1.38 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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import Ionicons from "react-native-vector-icons/Ionicons";
import { MapPage } from "./screens/MapPage.jsx";
import { Splash } from "./screens/SplashLoginPage.jsx";
import { Faves } from "./screens/Faves"
//========================================= MAIN APP COMPONENT ================================================//
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen
name="Login"
component={Splash}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="ios-home" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Map"
component={MapPage}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="md-map" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Faves"
component={Faves}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="ios-heart" color={color} size={size} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}