[feat] tabs added

This commit is contained in:
Arta
2024-01-15 17:30:21 +03:30
parent 2e1e239be5
commit 1865d2e6a8
13 changed files with 14159 additions and 76 deletions

View File

@@ -9,6 +9,8 @@ import { SplashScreen, Stack } from 'expo-router';
import { useEffect } from 'react';
import { useColorScheme } from 'react-native';
import Colors from '../constants/Colors';
export {
// Catch any errors thrown by the Layout component.
ErrorBoundary,
@@ -53,7 +55,15 @@ function RootLayoutNav() {
return (
<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack>
<Stack
screenOptions={{
gestureEnabled: true,
headerShown: false,
contentStyle: {
backgroundColor: Colors.dark.shade900,
},
}}
>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="modal" options={{ presentation: 'modal' }} />
</Stack>