From 3020bf5903d64ebba4e3e6c1f2da35834c28d86a Mon Sep 17 00:00:00 2001 From: Gauvain Date: Wed, 15 Jul 2026 18:44:05 +0200 Subject: [PATCH] fix(ui): unify the header back icon and fix its Android alignment --- components/common/HeaderBackButton.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/components/common/HeaderBackButton.tsx b/components/common/HeaderBackButton.tsx index 8818a9a09..ba06411e5 100644 --- a/components/common/HeaderBackButton.tsx +++ b/components/common/HeaderBackButton.tsx @@ -1,4 +1,4 @@ -import { Ionicons } from "@expo/vector-icons"; +import { Feather } from "@expo/vector-icons"; import { BlurView, type BlurViewProps } from "expo-blur"; import { Platform } from "react-native"; import { Pressable, type PressableProps } from "react-native-gesture-handler"; @@ -23,7 +23,7 @@ export const HeaderBackButton: React.FC = ({ className='flex items-center justify-center w-9 h-9' {...pressableProps} > - + ); } @@ -36,10 +36,10 @@ export const HeaderBackButton: React.FC = ({ intensity={100} className='overflow-hidden rounded-full p-2' > - @@ -49,13 +49,16 @@ export const HeaderBackButton: React.FC = ({ return ( router.back()} - className=' rounded-full p-2' + // Match the Settings page back button: chevron flush to the edge with a + // 16px gap before the title (the old `p-2` pushed both arrow and title + // too far right). drop-shadow keeps it readable over images. + style={{ marginRight: 16 }} {...pressableProps} > -