init drawer
This commit is contained in:
@@ -48,8 +48,9 @@ export default function TabLayout() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Tabs.Screen
|
<Tabs.Screen
|
||||||
name="account"
|
name="dashboard"
|
||||||
options={{
|
options={{
|
||||||
|
headerShown: false, // Ukryj nagłówek dla Drawer
|
||||||
title: "Konto",
|
title: "Konto",
|
||||||
tabBarLabel: "Konto",
|
tabBarLabel: "Konto",
|
||||||
tabBarIcon: ({ color, size }) => (
|
tabBarIcon: ({ color, size }) => (
|
||||||
|
|||||||
13
ArtisanConnect/app/(tabs)/dashboard/_layout.jsx
Normal file
13
ArtisanConnect/app/(tabs)/dashboard/_layout.jsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { Drawer } from "expo-router/drawer";
|
||||||
|
|
||||||
|
export default function AccountDrawerLayout() {
|
||||||
|
return (
|
||||||
|
<Drawer>
|
||||||
|
<Drawer.Screen name="account" options={{ title: "Konto" }} />
|
||||||
|
<Drawer.Screen
|
||||||
|
name="userNotices"
|
||||||
|
options={{ title: "Moje ogłoszenia" }}
|
||||||
|
/>
|
||||||
|
</Drawer>
|
||||||
|
);
|
||||||
|
}
|
||||||
4
ArtisanConnect/app/(tabs)/dashboard/userNotices.jsx
Normal file
4
ArtisanConnect/app/(tabs)/dashboard/userNotices.jsx
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import { Text } from "@/components/ui/text";
|
||||||
|
export default function UserNotices() {
|
||||||
|
return <Text>Użytkownik</Text>;
|
||||||
|
}
|
||||||
@@ -3,6 +3,8 @@ import "@/global.css";
|
|||||||
import { GluestackUIProvider } from "@/components/ui/gluestack-ui-provider";
|
import { GluestackUIProvider } from "@/components/ui/gluestack-ui-provider";
|
||||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||||
|
|
||||||
|
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
||||||
|
import { Drawer } from "expo-router/drawer";
|
||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient();
|
||||||
export default function RootLayout() {
|
export default function RootLayout() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
4562
ArtisanConnect/package-lock.json
generated
4562
ArtisanConnect/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,7 @@
|
|||||||
"@gluestack-ui/themed": "^1.1.73",
|
"@gluestack-ui/themed": "^1.1.73",
|
||||||
"@gluestack-ui/toast": "^1.0.9",
|
"@gluestack-ui/toast": "^1.0.9",
|
||||||
"@legendapp/motion": "^2.4.0",
|
"@legendapp/motion": "^2.4.0",
|
||||||
|
"@react-navigation/drawer": "^7.3.11",
|
||||||
"@tanstack/react-query": "^5.74.4",
|
"@tanstack/react-query": "^5.74.4",
|
||||||
"axios": "^1.9.0",
|
"axios": "^1.9.0",
|
||||||
"babel-plugin-module-resolver": "^5.0.2",
|
"babel-plugin-module-resolver": "^5.0.2",
|
||||||
@@ -42,7 +43,8 @@
|
|||||||
"react-dom": "19.0.0",
|
"react-dom": "19.0.0",
|
||||||
"react-native": "0.79.2",
|
"react-native": "0.79.2",
|
||||||
"react-native-css-interop": "^0.1.22",
|
"react-native-css-interop": "^0.1.22",
|
||||||
"react-native-reanimated": "3.17.4",
|
"react-native-gesture-handler": "~2.24.0",
|
||||||
|
"react-native-reanimated": "~3.17.4",
|
||||||
"react-native-safe-area-context": "5.4.0",
|
"react-native-safe-area-context": "5.4.0",
|
||||||
"react-native-screens": "~4.10.0",
|
"react-native-screens": "~4.10.0",
|
||||||
"react-native-svg": "15.11.2",
|
"react-native-svg": "15.11.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user