Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
/**
|
|
* User detail stack navigator layout
|
|
* Provides navigation for user detail screens
|
|
*/
|
|
import { Stack, useRouter } from 'expo-router';
|
|
import { Pressable } from 'react-native';
|
|
import { ChevronLeft } from 'lucide-react-native';
|
|
import { colors } from '@/lib/theme';
|
|
|
|
export default function UserLayout() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<Stack
|
|
screenOptions={{
|
|
headerShown: true,
|
|
headerStyle: {
|
|
backgroundColor: colors.background.dark,
|
|
},
|
|
headerTintColor: colors.text.primary.dark,
|
|
headerTitleStyle: {
|
|
fontWeight: '600',
|
|
},
|
|
headerBackTitle: 'Back',
|
|
headerLeft: () => (
|
|
<Pressable onPress={() => router.back()} hitSlop={8}>
|
|
<ChevronLeft size={28} color={colors.text.primary.dark} />
|
|
</Pressable>
|
|
),
|
|
contentStyle: {
|
|
backgroundColor: colors.background.dark,
|
|
},
|
|
}}
|
|
>
|
|
<Stack.Screen
|
|
name="[id]"
|
|
options={{
|
|
title: 'User',
|
|
}}
|
|
/>
|
|
</Stack>
|
|
);
|
|
}
|