diff --git a/apps/mobile/src/components/layouts/header/NavigationHeader.tsx b/apps/mobile/src/components/layouts/header/NavigationHeader.tsx index 89404578e..7ea7b8855 100644 --- a/apps/mobile/src/components/layouts/header/NavigationHeader.tsx +++ b/apps/mobile/src/components/layouts/header/NavigationHeader.tsx @@ -274,6 +274,14 @@ export const InternalNavigationHeader = ({ setRightWidth(width) }) }, [rightRef]) + // The title is centered with the button widths, which can change after the first measure, e.g. + // the timeline actions only show once the user is known to be signed in + const onLeftLayout = useCallback((e: LayoutChangeEvent) => { + setLeftWidth(e.nativeEvent.layout.width) + }, []) + const onRightLayout = useCallback((e: LayoutChangeEvent) => { + setRightWidth(e.nativeEvent.layout.width) + }, []) return ( @@ -355,6 +364,7 @@ export const InternalNavigationHeader = ({ {/* Right */}