Skip to content

Remove RNTester's bottom padding under the iPad's floating tab bar - #60370

Draft
ide wants to merge 1 commit into
react:mainfrom
expo:@ide/rntester-ipad-tab-bottom-inset
Draft

ide wants to merge 1 commit into
react:mainfrom
expo:@ide/rntester-ipad-tab-bottom-inset

Conversation

@ide

@ide ide commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary:

On iPad a floating tab bar along the top replaces the bottom tab bar. RNTester's tabs still counted the replaced bar as a bottom bar, because it is not hidden and keeps a full-width frame at the bottom edge. The content got the 65-point bottom inset meant to clear a bottom bar, and the example list stopped 65 points short of the bottom of the screen.

The replaced bar is not in a window, so this change counts a tab bar as a bottom bar only when it is in one.

Changelog:

[INTERNAL] [FIXED] - Remove the bottom padding from RNTester's content on iPad

Test Plan:

Ran:

node scripts/clang-format.js --check packages/rn-tester/RNTesterTabsIOS/ios/RNTesterTabsIOSComponentView.mm   # passes
git diff --check upstream/main                                                                                # clean

RNTester builds on this base with the change (2026-11-28, Xcode 27.1):

xcodebuild -workspace packages/rn-tester/RNTesterPods.xcworkspace -scheme RNTester -configuration Debug \
  -destination 'generic/platform=iOS Simulator' ARCHS=arm64 ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO build

Not run: launching it on an iPad Pro 13-inch simulator. The example list reaches the bottom of the screen; on main it stops 65 points above it. On an iPhone the content still ends above the tab bar.

🤖 Generated with Claude Code

On iPad a floating tab bar along the top replaces the bottom tab bar.
RNTester's tabs still counted the replaced bar as a bottom bar, because
it is not hidden and keeps a full-width frame at the bottom edge, so the
content got the 65-point bottom inset and the example list stopped short
of the bottom of the screen.

The replaced bar is not in a window, so only count a tab bar that is.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant