-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDashboard.js
48 lines (46 loc) · 1.48 KB
/
Dashboard.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
import { createMaterialBottomTabNavigator } from "react-native-paper/react-navigation";
import Default from "./components/Default";
import Map from "./Map";
import TestLogin from "./components/TestLogin";
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons";
import { NavigationContainer } from "@react-navigation/native";
import InsightNavigator from "./components/InsightNavigator";
const Tab = createMaterialBottomTabNavigator();
export default Dashboard = () => {
return (
<NavigationContainer independent={true}>
<Tab.Navigator initialRouteName="Home">
<Tab.Screen
name="Login"
component={TestLogin}
options={{
tabBarLabel: "Login",
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="home" color={color} size={26} />
),
}}
/>
<Tab.Screen
name="Home"
component={InsightNavigator}
options={{
tabBarLabel: "Home",
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="home" color={color} size={26} />
),
}}
/>
<Tab.Screen
name="Map"
component={Map}
options={{
tabBarLabel: "Map",
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="map" color={color} size={26} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
};