- Harness: kintex-mobile-dev agent + kintex-mobile-orchestrator skill (WISE mobile ref, Stitch-first design rule, dual app targets B2B/B2C) - design.md v2.1: full 84-screen inventory (web 51 / admin 10 / public 8 / mobile 15) with Stitch prompts incl. ticketing (SCR-P7/P8, M14/M15) - PLANNING v3.1: unified account + split signup tracks (2FA required for staff, light signup/guest for visitors), one codebase / two app targets - Deliverables: dev plan (21s), user/operator/developer guides (17/14/15s), program spec (44s, 65 programs, 8 flowcharts), DA (DB design 14s + table spec xlsx 35 tables/299 cols) - Benchmark: ticketing-app-benchmark.md (7 apps) -> IMPLEMENTATION_BACKLOG Phase F (14 items) - Stitch: 23 generated screens saved (mobile 10, admin 6, web core 5, ticket 2) - mobile/: Expo scaffold (SDK 51, expo-router, secure store JWT) - frontend: SCR-13~17 QA fixes, icons.tsx, kintexEvents, V10 seed migration - ci/: KINTEX CI logo assets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
32 lines
785 B
TypeScript
32 lines
785 B
TypeScript
/*
|
|
* 진입점 — 토큰 복원 대기 후 인증 상태에 따라 로그인/탭 홈으로 분기.
|
|
*/
|
|
import { Redirect } from 'expo-router';
|
|
import React from 'react';
|
|
import { ActivityIndicator, StyleSheet, View } from 'react-native';
|
|
import { useAuth } from '../context/AuthContext';
|
|
import { colors } from '../theme';
|
|
|
|
export default function Index() {
|
|
const { ready, token } = useAuth();
|
|
|
|
if (!ready) {
|
|
return (
|
|
<View style={styles.center}>
|
|
<ActivityIndicator color={colors.primary600} size="large" />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
return <Redirect href={token ? '/(tabs)' : '/login'} />;
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
center: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
backgroundColor: colors.neutral050,
|
|
},
|
|
});
|