mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:03:26 +00:00
87 lines
2.1 KiB
TypeScript
87 lines
2.1 KiB
TypeScript
import { Tabs } from "expo-router";
|
|
|
|
import Colors from "@movie-web/tailwind-config/colors";
|
|
|
|
import TabBarIcon from "~/components/TabBarIcon";
|
|
|
|
export default function TabLayout() {
|
|
return (
|
|
<Tabs
|
|
sceneContainerStyle={{
|
|
backgroundColor: Colors.background,
|
|
}}
|
|
screenOptions={{
|
|
headerShown: false,
|
|
tabBarActiveTintColor: Colors.primary[100],
|
|
tabBarStyle: {
|
|
backgroundColor: Colors.secondary[700],
|
|
borderTopColor: "transparent",
|
|
borderTopRightRadius: 20,
|
|
borderTopLeftRadius: 20,
|
|
height: 80,
|
|
},
|
|
tabBarItemStyle: {
|
|
paddingVertical: 18,
|
|
height: 82,
|
|
},
|
|
tabBarLabelStyle: [
|
|
{
|
|
marginTop: 2,
|
|
},
|
|
],
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Home",
|
|
tabBarIcon: ({ focused }) => (
|
|
<TabBarIcon name="home" focused={focused} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="about"
|
|
options={{
|
|
title: "About",
|
|
tabBarIcon: ({ focused }) => (
|
|
<TabBarIcon name="info-circle" focused={focused} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="search"
|
|
options={{
|
|
title: "Search",
|
|
tabBarLabel: "",
|
|
tabBarIcon: () => (
|
|
<TabBarIcon
|
|
className="flex aspect-[1/1] h-14 items-center justify-center rounded-full bg-primary-400 text-center align-middle text-2xl text-white"
|
|
name="search"
|
|
color="#FFF"
|
|
/>
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="settings"
|
|
options={{
|
|
title: "Settings",
|
|
tabBarIcon: ({ focused }) => (
|
|
<TabBarIcon name="cog" focused={focused} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="account"
|
|
options={{
|
|
title: "Account",
|
|
tabBarIcon: ({ focused }) => (
|
|
<TabBarIcon name="user" focused={focused} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|