Small Changes (delete index.js)

This commit is contained in:
thschleicher 2023-12-01 08:57:04 +01:00
parent 8f39ec9bf4
commit c960c41e3a
4 changed files with 45 additions and 32 deletions

View file

@ -3,20 +3,19 @@ import {StyleSheet, View} from "react-native"
import { FontAwesome } from "@expo/vector-icons";
import {useThemeColor} from "../hooks/hooks";
import {color} from "ansi-fragments";
export default function Layout() {
const selectedColor: string = useThemeColor( "tabIconSelected");
const defaultColor: string = useThemeColor("tabIconDefault");
const backgroundColor: string = useThemeColor("backgroundColor");
const tabBarColor: string = useThemeColor("tabBarColor");
const styles = StyleSheet.create({
sceneContainer: {
backgroundColor: backgroundColor,
position: "absolute",
},
view: {
backgroundColor: "red",
tabBar: {
backgroundColor: tabBarColor,
}
});
@ -24,12 +23,11 @@ export default function Layout() {
tabBarActiveTintColor: selectedColor,
tabBarInactiveTintColor: defaultColor,
headerShown: false,
tabBarStyle: styles.tabBar,
}
return (
<Tabs sceneContainerStyle={styles.sceneContainer} initialRouteName={"index"} screenOptions={{tabBarBackground: () => {
return <View style={styles.view}/>;
}}}>
<Tabs sceneContainerStyle={styles.sceneContainer} initialRouteName={"index"} screenOptions={screenOptions}>
<Tabs.Screen name="budget" options={
{
tabBarLabel: "Budget",