mirror of
https://github.com/DocNR/POWR.git
synced 2025-04-23 01:01:27 +00:00
34 lines
809 B
TypeScript
34 lines
809 B
TypeScript
// app/(packs)/_layout.tsx
|
|
import { Stack } from 'expo-router';
|
|
import { useColorScheme } from '@/lib/theme/useColorScheme';
|
|
|
|
export default function PacksLayout() {
|
|
const { isDarkColorScheme } = useColorScheme();
|
|
|
|
return (
|
|
<Stack
|
|
screenOptions={{
|
|
headerStyle: {
|
|
backgroundColor: isDarkColorScheme ? '#18181b' : '#ffffff',
|
|
},
|
|
headerTintColor: isDarkColorScheme ? '#ffffff' : '#18181b',
|
|
headerShadowVisible: false,
|
|
headerBackTitle: 'Back',
|
|
}}
|
|
>
|
|
<Stack.Screen
|
|
name="import"
|
|
options={{
|
|
presentation: 'modal',
|
|
title: 'Import POWR Pack',
|
|
}}
|
|
/>
|
|
<Stack.Screen
|
|
name="manage"
|
|
options={{
|
|
title: 'Manage POWR Packs',
|
|
}}
|
|
/>
|
|
</Stack>
|
|
);
|
|
} |