diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index cfbc1e2..f891b8b 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -1,12 +1,12 @@ -import { Tabs } from 'expo-router'; -import React from 'react'; -import { Platform } from 'react-native'; +import { Tabs } from "expo-router"; +import React from "react"; +import { Platform } from "react-native"; -import { HapticTab } from '@/components/HapticTab'; -import { IconSymbol } from '@/components/ui/IconSymbol'; -import TabBarBackground from '@/components/ui/TabBarBackground'; -import { Colors } from '@/constants/Colors'; -import { useColorScheme } from '@/hooks/useColorScheme'; +import { HapticTab } from "@/components/HapticTab"; +import { IconSymbol } from "@/components/ui/IconSymbol"; +import TabBarBackground from "@/components/ui/TabBarBackground"; +import { Colors } from "@/constants/Colors"; +import { useColorScheme } from "@/hooks/useColorScheme"; export default function TabLayout() { const colorScheme = useColorScheme(); @@ -14,30 +14,35 @@ export default function TabLayout() { return ( + }} + > , + title: "Home", + tabBarIcon: ({ color }) => ( + + ), }} /> , + title: "Explore", + tabBarIcon: ({ color }) => ( + + ), }} /> diff --git a/app/_layout.tsx b/app/_layout.tsx index e6a660f..924acb8 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -4,7 +4,7 @@ import { ThemeProvider, } from "@react-navigation/native"; import { useFonts } from "expo-font"; -import { Stack } from "expo-router"; +import { Slot } from "expo-router"; import { StatusBar } from "expo-status-bar"; import "react-native-reanimated"; import "./globals.css"; @@ -26,10 +26,7 @@ export default function RootLayout() { return ( - - - - + diff --git a/app/register/_layout.tsx b/app/register/_layout.tsx new file mode 100644 index 0000000..f76d82f --- /dev/null +++ b/app/register/_layout.tsx @@ -0,0 +1,23 @@ +import { useColorScheme } from "@/hooks/useColorScheme"; +import { + DarkTheme, + DefaultTheme, + ThemeProvider, +} from "@react-navigation/native"; +import { Stack } from "expo-router"; +import { RegisterProvider } from "../../contexts/RegisterContext"; + +export default function RegisterLayout() { + const colorScheme = useColorScheme(); + return ( + + + + + + + + + + ); +} diff --git a/app/register/account.tsx b/app/register/account.tsx new file mode 100644 index 0000000..51f9dd8 --- /dev/null +++ b/app/register/account.tsx @@ -0,0 +1,62 @@ +import { useState } from "react"; +import { Alert, Pressable, Text, TextInput, View } from "react-native"; +import { useRegister } from "../../contexts/RegisterContext"; + +export default function AccountPage() { + const [email, setEmail] = useState(""); + const [firstName, setFirstName] = useState(""); + const [lastName, setLastName] = useState(""); + const [password, setPassword] = useState(""); + const { setAccountInfo, data } = useRegister(); + + const handleCreateAccount = () => { + setAccountInfo({ email, firstName, lastName, password }); + + console.log("πŸš€ Final Register Data:", { + ...data, + email, + firstName, + lastName, + password, + }); + + Alert.alert("Account Created", "You can now log in!"); + }; + + return ( + + + {/* Title and Step Indicator */} + + {/* Step Numbers */} + + 1 + 2 + 3 + + + Guardian information + + + + + + + {/*