Revize 2365039d
Přidáno uživatelem Michal Schwob před více než 1 rok
src/pages/Navigation.tsx | ||
---|---|---|
1 | 1 |
import {createNativeStackNavigator} from "@react-navigation/native-stack" |
2 | 2 |
import {NavigationContainer} from "@react-navigation/native" |
3 |
import {HStack, IconButton, Stack, VStack} from "native-base"
|
|
3 |
import {HamburgerIcon, HStack, IconButton, Menu, Pressable, Stack, View, VStack} from "native-base"
|
|
4 | 4 |
import {AntDesign} from "@expo/vector-icons" |
5 | 5 |
import {createDrawerNavigator} from "@react-navigation/drawer" |
6 | 6 |
import {useSelector} from "react-redux" |
... | ... | |
12 | 12 |
import Logout from "./Logout" |
13 | 13 |
import ItemViewPage from "./ItemViewPage" |
14 | 14 |
import NotesViewPage from "./NotesViewPage" |
15 |
import MenuComponent from "../components/navigation/MenuComponent" |
|
15 | 16 |
|
16 | 17 |
export type RootStackParamList = { |
17 | 18 |
Home: undefined, |
... | ... | |
39 | 40 |
}, |
40 | 41 |
headerTintColor: nativeBaseTheme.colors.primary[500], |
41 | 42 |
headerRight: () => ( |
42 |
<HStack space={ 0 } alignItems="end" marginRight={-3}> |
|
43 |
<IconButton |
|
44 |
onPress={() => navigation.navigate("Notes", {inventoryId: null})} |
|
45 |
title="Info" |
|
46 |
color="#fff" |
|
47 |
_icon={{ |
|
48 |
as: AntDesign, |
|
49 |
name: "message1", |
|
50 |
color: "white" |
|
51 |
}} |
|
52 |
/> |
|
53 |
<IconButton |
|
54 |
onPress={ () => navigation.navigate("Search", { inventoryId: null }) } |
|
55 |
title="Info" |
|
56 |
color="#fff" |
|
57 |
_icon={ { |
|
58 |
as: AntDesign, |
|
59 |
name: "search1", |
|
60 |
color: "white" |
|
61 |
} } |
|
62 |
/> |
|
63 |
<IconButton |
|
64 |
onPress={() => navigation.navigate("Logout", {inventoryId: null})} |
|
65 |
title="Info" |
|
66 |
color="#fff" |
|
67 |
_icon={{ |
|
68 |
as: AntDesign, |
|
69 |
name: "logout", |
|
70 |
color: "white" |
|
71 |
}} |
|
72 |
/> |
|
73 |
</HStack> |
|
43 |
<MenuComponent navigation={navigation}/> |
|
74 | 44 |
), |
75 | 45 |
contentStyle: { |
76 | 46 |
backgroundColor: nativeBaseTheme.colors.primary[50], |
Také k dispozici: Unified diff
NEW: menu updated
re #10846