From 4fc78f006d2d57e4460a771b5869e553e069aecb Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sat, 30 May 2026 10:03:56 +0200 Subject: [PATCH] fix: use correct back button --- app/(auth)/(tabs)/(home)/_layout.tsx | 146 +++------------------------ 1 file changed, 15 insertions(+), 131 deletions(-) diff --git a/app/(auth)/(tabs)/(home)/_layout.tsx b/app/(auth)/(tabs)/(home)/_layout.tsx index 302ed0836..475920bb4 100644 --- a/app/(auth)/(tabs)/(home)/_layout.tsx +++ b/app/(auth)/(tabs)/(home)/_layout.tsx @@ -59,15 +59,7 @@ export default function IndexLayout() { headerBlurEffect: "none", headerTransparent: Platform.OS === "ios", headerShadowVisible: false, - headerLeft: () => ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> ( - _router.back()} - className='pl-0.5' - style={{ marginRight: Platform.OS === "android" ? 16 : 0 }} - > - - - ), + headerLeft: () => , }} /> {Object.entries(nestedTabPageScreenOptions).map(([name, options]) => ( @@ -329,11 +217,7 @@ export default function IndexLayout() { name='collections/[collectionId]' options={{ title: "", - headerLeft: () => ( - _router.back()} className='pl-0.5'> - - - ), + headerLeft: () => , headerShown: true, headerBlurEffect: "prominent", headerTransparent: Platform.OS === "ios",