init drawer

This commit is contained in:
Patryk
2025-05-06 22:17:51 +02:00
parent 47e5d80792
commit 6598faf5e8
7 changed files with 2418 additions and 2170 deletions

View File

@@ -48,8 +48,9 @@ export default function TabLayout() {
}}
/>
<Tabs.Screen
name="account"
name="dashboard"
options={{
headerShown: false, // Ukryj nagłówek dla Drawer
title: "Konto",
tabBarLabel: "Konto",
tabBarIcon: ({ color, size }) => (

View 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>
);
}

View File

@@ -0,0 +1,4 @@
import { Text } from "@/components/ui/text";
export default function UserNotices() {
return <Text>Użytkownik</Text>;
}

View File

@@ -3,6 +3,8 @@ import "@/global.css";
import { GluestackUIProvider } from "@/components/ui/gluestack-ui-provider";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { Drawer } from "expo-router/drawer";
const queryClient = new QueryClient();
export default function RootLayout() {
return (

File diff suppressed because it is too large Load Diff

View File

@@ -26,6 +26,7 @@
"@gluestack-ui/themed": "^1.1.73",
"@gluestack-ui/toast": "^1.0.9",
"@legendapp/motion": "^2.4.0",
"@react-navigation/drawer": "^7.3.11",
"@tanstack/react-query": "^5.74.4",
"axios": "^1.9.0",
"babel-plugin-module-resolver": "^5.0.2",
@@ -42,7 +43,8 @@
"react-dom": "19.0.0",
"react-native": "0.79.2",
"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-screens": "~4.10.0",
"react-native-svg": "15.11.2",