diff --git a/app/(tabs)/[id].tsx b/app/(tabs)/[id].tsx new file mode 100644 index 0000000..d92cd09 --- /dev/null +++ b/app/(tabs)/[id].tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { View, Text, StyleSheet } from 'react-native'; +import { useLocalSearchParams, Stack } from 'expo-router'; + +const NewPage = () => { + const { id } = useLocalSearchParams(); + + return ( + + + {id} Page + + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F5FCFF', // Add your desired background color + }, + text: { + fontSize: 20, + textAlign: 'center', + margin: 10, + color: '#333', // Add your desired text color + }, +}); + +export default NewPage; diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index e9b6011..ffc0085 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -1,7 +1,8 @@ + import FontAwesome from "@expo/vector-icons/FontAwesome"; -import { Tabs } from "expo-router"; +import { Link, Tabs } from "expo-router"; import React from "react"; -import { useColorScheme } from "react-native"; +import { Pressable, useColorScheme } from "react-native"; /** * You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ @@ -19,11 +20,33 @@ export default function RootLayout() { const colorScheme = useColorScheme(); return ( - , - headerShown: false}}/> + + + , + headerTitleAlign: "center", + headerStyle: { + backgroundColor: "powderblue", + }, + + headerRight: () => ( + + + {({ pressed }) => ( + + )} + + + ), + }} + /> , headerShown: false}}/> @@ -33,6 +56,7 @@ export default function RootLayout() { , headerShown: false}}/> + ); } diff --git a/app/(tabs)/account.tsx b/app/(tabs)/account.tsx index 597f156..f2d2b8a 100644 --- a/app/(tabs)/account.tsx +++ b/app/(tabs)/account.tsx @@ -1,5 +1,8 @@ -import { View, Text } from 'react-native' -import React from 'react' +import { View, Text, TouchableOpacity, ScrollView, StyleSheet, Button } from 'react-native' +import { BottomSheetModal, useBottomSheetModal } from "@gorhom/bottom-sheet"; +import React, { useRef } from 'react' + +import AccountSheet from '../../components/bottomSheet'; //TODO: add a notification icon //TODO: add a profile icon @@ -9,11 +12,83 @@ import React from 'react' //TODO: add a logout button const account = () => { + const bottomSheetRef = useRef(null); + const { dismiss } = useBottomSheetModal(); + const handleOpenPress = () => bottomSheetRef.current?.present(); + return ( - - account - + + + Personal Details + + + + Transactions + + + + Utility + + + + Request Help + + + + Calendar + + + {/* + Edit Access + */} + +