Ship Expo Router screens, seeded stores, and polished UX so auth, shop, checkout, prescriptions, loyalty, family, and account processes work end-to-end offline. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import { Redirect } from "expo-router";
|
|
import { useAuthStore } from "@/lib/stores/authStore";
|
|
|
|
export default function Index() {
|
|
const hasOnboarded = useAuthStore((s) => s.hasOnboarded);
|
|
if (!hasOnboarded) {
|
|
return <Redirect href="/(root)/auth/welcome" />;
|
|
}
|
|
return <Redirect href="/(root)/(tabs)" />;
|
|
}
|