Skip to content

Commit b24e8ce

Browse files
fix(mobile): the unfolded Duo keeps its header in portrait (#24339)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 940e3fa commit b24e8ce

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎apps/mobile/src/native/V5StackHeader.ios.tsx‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,15 @@ export function V5StackHeader(props: {
274274
backButtonHidden={options.headerBackVisible === false}
275275
ios={{
276276
navigationItemStyle: options.unstable_navigationItemStyle,
277-
// Opt-ins apply only on the Duo's short display; unset falls back to the system default.
278-
minimizationBehavior: isDuoDevice(deviceType)
279-
? options.unstable_headerMinimizationBehavior
280-
: undefined,
277+
// Opt-ins apply only where the Duo is short: folded, or held landscape. The Duo
278+
// resolves `automatic` to minimize on scroll, so the tall unfolded display opts out.
279+
minimizationBehavior: !isDuoDevice(deviceType)
280+
? undefined
281+
: deviceType === "duo-unfolded" &&
282+
nativeMetrics &&
283+
nativeMetrics.height > nativeMetrics.width
284+
? "never"
285+
: options.unstable_headerMinimizationBehavior,
281286
tintColor: options.headerTintColor,
282287
searchBar:
283288
mailSearch || searchOptions ? (

0 commit comments

Comments
 (0)