From 25a7b4da7bd23bd99e77a6de8a83905c8e39a311 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 21 Jun 2025 15:44:47 -0700 Subject: [PATCH] Add bar on top of pages --- app/(tabs)/_layout.tsx | 33 ++++++++++++++++++++++--- app/(tabs)/index.tsx | 55 ++++++++++++++++++++++++++++-------------- 2 files changed, 67 insertions(+), 21 deletions(-) diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index 805f0f2..b7c7530 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -8,11 +8,15 @@ import TabBarBackground from '@/components/ui/TabBarBackground'; import { lightTheme, darkTheme } from '@/constants/Colors'; import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context'; import { ThemedView } from '@/components/ThemedView'; +import { IconButton } from 'react-native-paper'; +import { useNavigation } from '@react-navigation/native'; +import { ThemedText } from '@/components/ThemedText'; export default function TabLayout() { const colorScheme = useColorScheme(); const theme = colorScheme === 'dark' ? darkTheme : lightTheme; const insets = useSafeAreaInsets(); + const navigation = useNavigation(); return ( @@ -37,25 +41,48 @@ export default function TabLayout() { right: 0, height: insets.bottom, backgroundColor: theme.colors.primary, // Or any custom color - zIndex: 1000, + zIndex: 1, }} /> + + { + navigation.dispatch({ type: 'OPEN_DRAWER' }); + }} /> + JOURNEY + { + console.log('Search pressed'); + }} /> + - - My Journey - - {theme.colors.primary} + + Directory: {dataDirectoryUri} + { + console.log('Add new journey'); + }} /> ); } -const styles = StyleSheet.create({ - stepContainer: { - gap: 8, - marginBottom: 8, - }, - headerImage: { - width: 200, - height: 200, - bottom: 0, - left: 20, - position: 'absolute', - }, -});