This repository has been archived on 2026-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Gishen-Mob/app/index.tsx
kirukib 7310a349c5 Add Gishen mobile app with complete demo shopping and care flows.
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>
2026-08-07 01:21:32 +03:00

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)" />;
}