import { Stack } from "expo-router";
import { View } from "react-native";
import { tw, MyText } from "common-ui";
import { useAuth } from "@/src/contexts/AuthContext";
import LoginWall from "@/components/LoginWall";
export default function MeLayout() {
const { isAuthenticated, isLoading } = useAuth();
if (isLoading) {
return (
Loading...
);
}
// Inline login gate so Back / tab switching still works.
if (!isAuthenticated) {
return ;
}
return (
);
}