diff --git a/app.json b/app.json index 1599988..c201436 100644 --- a/app.json +++ b/app.json @@ -38,7 +38,8 @@ "backgroundColor": "#000000" } } - ] + ], + "expo-secure-store" ], "experiments": { "typedRoutes": true, diff --git a/app/(tabs)/_layout.tsx b/app/(protected)/(tabs)/_layout.tsx similarity index 100% rename from app/(tabs)/_layout.tsx rename to app/(protected)/(tabs)/_layout.tsx diff --git a/app/(protected)/(tabs)/calendar.tsx b/app/(protected)/(tabs)/calendar.tsx new file mode 100644 index 0000000..34aa5bb --- /dev/null +++ b/app/(protected)/(tabs)/calendar.tsx @@ -0,0 +1 @@ +export { default } from "@/features/calendar/screens/CalendarScreen"; diff --git a/app/(protected)/(tabs)/index.tsx b/app/(protected)/(tabs)/index.tsx new file mode 100644 index 0000000..964e4e7 --- /dev/null +++ b/app/(protected)/(tabs)/index.tsx @@ -0,0 +1,50 @@ +import Button from "@/components/ui/buttons"; +import { useAuth } from "@/features/shared/hooks/useAuth"; +import { router } from "expo-router"; +import { StyleSheet, Text, View } from "react-native"; + +export default function Index() { + const { logout } = useAuth(); + + const handleLogout = async () => { + await logout(); + router.replace("/login"); + }; + + return ( + + To-do app + You are logged in. + +