This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
interaktive-systeme/app/(tabs)/home/_layout.tsx
2023-12-30 14:35:05 +01:00

35 lines
No EOL
839 B
TypeScript

import { Stack } from "expo-router";
import { View, Text } from 'react-native'
import React from 'react'
import { useTheme } from "../../contexts/ThemeContext";
export default function _Layout() {
const { colors } = useTheme();
return (
<Stack
initialRouteName="index"
screenOptions={{
contentStyle: {
backgroundColor:colors.backgroundColor,
},
headerStyle: {
backgroundColor: colors.backgroundColor
},
headerTintColor: colors.primaryText
}}>
<Stack.Screen name="index" options={{
title: "test",
headerShown: false,
}}/>
<Stack.Screen name="addItem"/>
<Stack.Screen name="userSettings" options={{
animation: "slide_from_left",
title: "User Settings",
headerShown: false,
}}/>
</Stack>
)
}