Files
codexbar-mobile/app/index.tsx
T
space 2c31be11c4
CodexBar Mobile Build / build-android (push) Successful in 21m9s
CodexBar Mobile Build / release (push) Successful in 11s
by codex: feat. General Improvements
2026-06-25 14:27:58 +02:00

20 lines
571 B
TypeScript

import { useEffect } from "react";
import { View, ActivityIndicator } from "react-native";
import { router } from "expo-router";
import { hasCompletedOnboarding } from "@/lib/setupState";
import { COLORS } from "@/lib/constants";
export default function Index() {
useEffect(() => {
hasCompletedOnboarding().then((done) => {
router.replace(done ? "/(tabs)" : "/onboarding");
});
}, []);
return (
<View className="flex-1 bg-neutral-950 items-center justify-center">
<ActivityIndicator color={COLORS.codex} size="large" />
</View>
);
}