u/CollectionMedium3712

Random headerRight width expansion in Expo / React Navigation native header on iOS
▲ 3 r/expo

Random headerRight width expansion in Expo / React Navigation native header on iOS

Hi everyone!

Has anyone faced an issue where a custom headerRight component randomly expands its width when using the native iOS navigation header?

The strange part is that the issue does not happen consistently. After opening and closing the same screen multiple times, the native header sometimes recalculates the layout incorrectly and the headerRight area becomes wider than expected))

Sometimes it stays correct, sometimes it expands, and I can’t tie it to one specific user action.

It feels like the native UINavigationController / header layout is re-measuring the headerRight component incorrectly after repeated navigation transitions, maybe because of dynamic layout, blur, animated content, or cached measurements, idk

Screenshot attached

Has anyone seen this behavior before in Expo Go / React Navigation native stack on iOS?

u/CollectionMedium3712 — 7 days ago