kintex/mobile/app/_layout.tsx
zio becbc55152 feat(mobile): SCR-M15 ticket wallet + ticket-type select (sample, QR placeholder)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-12 05:26:30 +09:00

42 lines
1.8 KiB
TypeScript

/*
* 루트 레이아웃 — AuthProvider + 네이티브 스택 내비.
* 모바일은 MDI 미적용(단일 화면 포커스, design.md §2-2).
*/
import { Stack } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { AuthProvider } from '../context/AuthContext';
import { colors } from '../theme';
export default function RootLayout() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaProvider>
<AuthProvider>
<StatusBar style="dark" />
<Stack
screenOptions={{
headerStyle: { backgroundColor: colors.white },
headerTintColor: colors.neutral900,
headerTitleStyle: { fontWeight: '600' },
contentStyle: { backgroundColor: colors.neutral050 },
}}
>
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen name="login" options={{ headerShown: false }} />
<Stack.Screen name="register" options={{ title: '회원가입' }} />
<Stack.Screen name="forgot-password" options={{ title: '비밀번호 찾기' }} />
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="checklist" options={{ title: '현장 체크리스트' }} />
<Stack.Screen name="inspection" options={{ title: '현장 검수' }} />
<Stack.Screen name="tickets/index" options={{ title: '내 티켓' }} />
<Stack.Screen name="tickets/select" options={{ title: '티켓 예매' }} />
</Stack>
</AuthProvider>
</SafeAreaProvider>
</GestureHandlerRootView>
);
}