Files
Galaxies-my-app/app/_layout.tsx
T
Dennis Hundertmark 0e7f7e1dfd Initial commit
Generated by create-expo-app 3.2.0.
2025-03-05 00:48:33 +01:00

67 lines
1.7 KiB
TypeScript

import { COLORS } from "@/constants/colors";
import { Tabs } from "expo-router";
import { Ionicons } from "@expo/vector-icons";
import React from "react";
export default function RootLayout() {
return (
<Tabs
screenOptions={{
headerShadowVisible: false,
headerStyle: {
backgroundColor: COLORS.background,
},
headerTintColor: COLORS.text,
headerTitleStyle: {
fontWeight: "bold",
},
tabBarStyle: {
backgroundColor: COLORS.containerBackground,
borderTopColor: COLORS.text,
borderTopWidth: 1,
},
tabBarActiveTintColor: COLORS.text,
tabBarInactiveTintColor: COLORS.inactive,
}}
>
<Tabs.Screen
name={"index"}
options={{
href: null,
}}
></Tabs.Screen>
<Tabs.Screen
name="films"
options={{
title: "All Films",
headerShown: false,
tabBarLabel: "Films",
tabBarIcon: ({ color, size }) => (
<Ionicons name="film-outline" size={size} color={color} />
),
}}
></Tabs.Screen>
<Tabs.Screen
name="people"
options={{
title: "All Characters",
headerShown: false,
tabBarLabel: "People",
tabBarIcon: ({ color, size }) => (
<Ionicons name="person-outline" size={size} color={color} />
),
}}
></Tabs.Screen>
<Tabs.Screen
name="fav"
options={{
title: "Favorites",
tabBarIcon: ({ color, size }) => (
<Ionicons name="star-outline" size={size} color={color} />
),
}}
></Tabs.Screen>
</Tabs>
);
}