feat: UserSettings

This commit is contained in:
Jakob Stornig 2023-12-17 19:26:15 +01:00
parent b5613c6e18
commit 798e54f11c
6 changed files with 206 additions and 4 deletions

View file

@ -2,15 +2,35 @@ import { Stack } from "expo-router";
import { View, Text } from 'react-native'
import React from 'react'
import { useThemeColor } from "../../../hooks/useThemeColor";
import { useTheme } from "../../contexts/ThemeContext";
export default function _Layout() {
const { colors } = useTheme();
return (
<Stack>
<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>
)
}