diff --git a/app/src/app/(tabs)/_layout.tsx b/app/src/app/(tabs)/_layout.tsx index 6786edd..7996bc3 100644 --- a/app/src/app/(tabs)/_layout.tsx +++ b/app/src/app/(tabs)/_layout.tsx @@ -2,6 +2,7 @@ import { Ionicons } from "@expo/vector-icons"; import { Tabs } from "expo-router"; import type { ComponentProps, JSX } from "react"; import type { ColorValue } from "react-native"; +import { useWindowDimensions } from "react-native"; type IoniconName = ComponentProps["name"]; @@ -9,9 +10,19 @@ function TabIcon({ name, color }: { name: IoniconName; color: ColorValue }): JSX return ; } +const WIDE_BREAKPOINT = 768; + export default function TabsLayout(): JSX.Element { + const { width } = useWindowDimensions(); + const isWide = width >= WIDE_BREAKPOINT; + return ( - + , + title: "Browse", + tabBarIcon: ({ color }) => , + }} + /> + , }} />