-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppTab.js
49 lines (45 loc) · 1.04 KB
/
AppTab.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 React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import AppList from "./AppList";
import AppForm from "./AppForm";
const { Navigator, Screen } = createBottomTabNavigator();
function AppTab() {
return (
<NavigationContainer>
<Navigator
screenOptions={{
tabBarActiveTintColor: "#32264d",
tabBarInactiveTintColor: "#c1bccc",
tabBarActiveBackgroundColor: "#ebebf5",
tabBarInactiveBackgroundColor: "#fafafc",
tabBarLabelStyle: {
fontSize: 13,
position: "absolute",
top: 15,
bottom: 0,
left: 0,
right: 0,
},
tabBarIconStyle: { display: "none" },
}}
>
<Screen
name="AppList"
component={AppList}
options={{
tabBarLabel: "Compras",
}}
/>
<Screen
name="AppForm"
component={AppForm}
options={{
tabBarLabel: "Adicionar",
}}
/>
</Navigator>
</NavigationContainer>
);
}
export default AppTab;