From 0619c8c9c441495b684347532520e08999f2e9d3 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Mon, 28 Jul 2025 13:07:19 +0200 Subject: [PATCH] fix: update bottom tabs (#885) --- app.json | 8 ++++++-- app/(auth)/(tabs)/_layout.tsx | 27 +++++++++++---------------- bun.lock | 25 ++++++++++--------------- package.json | 3 ++- 4 files changed, 29 insertions(+), 34 deletions(-) diff --git a/app.json b/app.json index 4fa7289f..59cc5822 100644 --- a/app.json +++ b/app.json @@ -72,7 +72,10 @@ { "ios": { "deploymentTarget": "15.6", - "useFrameworks": "static" + "extraPods": [ + { "name": "SDWebImage", "modular_headers": true }, + { "name": "SDWebImageSVGCoder", "modular_headers": true } + ] }, "android": { "compileSdkVersion": 35, @@ -138,7 +141,8 @@ { "useDefaultExpandedMediaControls": true } - ] + ], + "react-native-bottom-tabs" ], "experiments": { "typedRoutes": true diff --git a/app/(auth)/(tabs)/_layout.tsx b/app/(auth)/(tabs)/_layout.tsx index 0aafe593..0021a549 100644 --- a/app/(auth)/(tabs)/_layout.tsx +++ b/app/(auth)/(tabs)/_layout.tsx @@ -1,8 +1,8 @@ import { - type BottomTabNavigationEventMap, - type BottomTabNavigationOptions, - createBottomTabNavigator, -} from "@react-navigation/bottom-tabs"; + createNativeBottomTabNavigator, + type NativeBottomTabNavigationEventMap, + type NativeBottomTabNavigationOptions, +} from "@bottom-tabs/react-navigation"; import type { ParamListBase, TabNavigationState, @@ -17,13 +17,13 @@ import { useSettings } from "@/utils/atoms/settings"; import { eventBus } from "@/utils/eventBus"; import { storage } from "@/utils/mmkv"; -const { Navigator } = createBottomTabNavigator(); +const { Navigator } = createNativeBottomTabNavigator(); export const NativeTabs = withLayoutContext< - BottomTabNavigationOptions, + NativeBottomTabNavigationOptions, typeof Navigator, TabNavigationState, - BottomTabNavigationEventMap + NativeBottomTabNavigationEventMap >(Navigator); export default function TabLayout() { @@ -51,7 +51,6 @@ export default function TabLayout() {