feat(mobile): thread header minimizes on the Duo while reading back through history#24235

merged4
main
t3code/thread-header-minimization
opened1d agobyJJulius Marminge
View on GitHubTwo-way sync enabledPR last imported 1d ago
0 / 9 viewed9 files changedLine totals unavailable

apps/mobile/src/native/V5StackHeader.ios.tsx ยท Earlier revision f764b308 ยท right 285โ€“289

Original diff
@@ -279,6 +282,11 @@ export function V5StackHeader(props: {
       backButtonHidden={options.headerBackVisible === false}
       ios={{
         navigationItemStyle: options.unstable_navigationItemStyle,
+        // Only the Duo's short display needs the room. Its system default hides the bar on
+        // every registered scroll view, so screens that don't opt in keep it fixed.
+        minimizationBehavior: isDuoDevice(deviceType)
+          ? (options.unstable_headerMinimizationBehavior ?? "never")
+          : undefined,

apps/mobile/src/native/V5StackHeader.ios.tsx ยท right 285โ€“289