From 861ae358193fcb44c6f0bd828a72bed48977193d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 28 Feb 2025 08:56:57 +0800 Subject: [PATCH] fix: NavigationHeaderBackButton --- .../modules/screen/TimelineSelectorProvider.tsx | 14 +++++++------- packages/shared/src/hono.ts | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/mobile/src/modules/screen/TimelineSelectorProvider.tsx b/apps/mobile/src/modules/screen/TimelineSelectorProvider.tsx index 5a9c51ff2..cb956b7dd 100644 --- a/apps/mobile/src/modules/screen/TimelineSelectorProvider.tsx +++ b/apps/mobile/src/modules/screen/TimelineSelectorProvider.tsx @@ -1,13 +1,11 @@ -import { useLocalSearchParams } from "expo-router" +import { router, useLocalSearchParams } from "expo-router" import { useMemo } from "react" -import { Share, useAnimatedValue, View } from "react-native" +import { Share, TouchableOpacity, useAnimatedValue, View } from "react-native" import { useColor } from "react-native-uikit-colors" +import { DefaultHeaderBackButton } from "@/src/components/layouts/header/NavigationHeader" import { NavigationContext } from "@/src/components/layouts/views/NavigationContext" -import { - NavigationBlurEffectHeader, - NavigationHeaderBackButton, -} from "@/src/components/layouts/views/SafeNavigationScrollView" +import { NavigationBlurEffectHeader } from "@/src/components/layouts/views/SafeNavigationScrollView" import { UIBarButton } from "@/src/components/ui/button/UIBarButton" import { TIMELINE_VIEW_SELECTOR_HEIGHT } from "@/src/constants/ui" import { Share3CuteReIcon } from "@/src/icons/share_3_cute_re" @@ -46,7 +44,9 @@ export function TimelineSelectorProvider({ children }: { children: React.ReactNo ) : () => ( - + router.back()}> + + ), [isTimeline, isSubscriptions], diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts index 5be22a708..744804726 100644 --- a/packages/shared/src/hono.ts +++ b/packages/shared/src/hono.ts @@ -14684,8 +14684,6 @@ declare const _routes: hono_hono_base.HonoBase