diff --git a/app/(auth)/(tabs)/_layout.tsx b/app/(auth)/(tabs)/_layout.tsx index fe268291..35da3645 100644 --- a/app/(auth)/(tabs)/_layout.tsx +++ b/app/(auth)/(tabs)/_layout.tsx @@ -5,18 +5,29 @@ import * as NavigationBar from "expo-navigation-bar"; import React, { useEffect } from "react"; import { Platform, StyleSheet } from "react-native"; +import { withLayoutContext } from "expo-router"; + import { createNativeBottomTabNavigator, - BottomSheetNavigationOptions, + NativeBottomTabNavigationEventMap, + NativeBottomTabNavigationOptions, } from "react-native-bottom-tabs/react-navigation"; -import { withLayoutContext } from "expo-router"; - const { Navigator } = createNativeBottomTabNavigator(); -export const Tabs = withLayoutContext( - Navigator -); +import { BottomTabNavigationOptions } from "@react-navigation/bottom-tabs"; + +import type { + ParamListBase, + TabNavigationState, +} from "@react-navigation/native"; + +export const NativeTabs = withLayoutContext< + BottomTabNavigationOptions, + typeof Navigator, + TabNavigationState, + NativeBottomTabNavigationEventMap +>(Navigator); export default function TabLayout() { useEffect(() => { @@ -27,34 +38,29 @@ export default function TabLayout() { }, []); return ( - - - + + ({ sfSymbol: "house" }), }} /> - ({ sfSymbol: "magnifyingglass" }), }} /> - ({ sfSymbol: "server.rack" }), }} /> - + ); } diff --git a/app/_layout.tsx b/app/_layout.tsx index 9c32fc76..e37db593 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -334,6 +334,8 @@ function Layout() { options={{ headerShown: false, title: "", + header: () => null, + }} />