diff options
author | polwex <polwex@sortug.com> | 2025-07-16 09:58:34 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-16 09:58:34 +0700 |
commit | dc0ad21f0e857adb87d710dd0f2f9affd0a9cbc9 (patch) | |
tree | 3d556ead415654e03b511b007365bcdff6d612ee /app/(tabs)/_layout.tsx | |
parent | 697ed671f394cbd07ea9751fe17f262744d99a49 (diff) |
kinda works
Diffstat (limited to 'app/(tabs)/_layout.tsx')
-rw-r--r-- | app/(tabs)/_layout.tsx | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx deleted file mode 100644 index a102c45..0000000 --- a/app/(tabs)/_layout.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { Tabs } from "expo-router"; -import { Toaster } from "react-hot-toast"; -import React from "react"; -import { Platform } from "react-native"; - -import { HapticTab } from "@/components/HapticTab"; -import { IconSymbol } from "@/components/ui/IconSymbol"; -import TabBarBackground from "@/components/ui/TabBarBackground"; -import { Colors } from "@/constants/Colors"; -import { useColorScheme } from "@/hooks/useColorScheme"; - -export default function TabLayout() { - const colorScheme = useColorScheme(); - - return ( - <> - <Tabs - screenOptions={{ - tabBarActiveTintColor: Colors[colorScheme ?? "light"].tint, - headerShown: false, - tabBarButton: HapticTab, - tabBarBackground: TabBarBackground, - tabBarStyle: Platform.select({ - ios: { - // Use a transparent background on iOS to show the blur effect - position: "absolute", - }, - default: {}, - }), - }} - > - <Tabs.Screen - name="index" - options={{ - title: "Home", - tabBarIcon: ({ color }) => ( - <IconSymbol size={28} name="house.fill" color={color} /> - ), - }} - /> - <Tabs.Screen - name="explore" - options={{ - title: "Explore", - tabBarIcon: ({ color }) => ( - <IconSymbol size={28} name="paperplane.fill" color={color} /> - ), - }} - /> - </Tabs> - <Toaster position="top-center" /> - </> - ); -} |