Skip to content

fix(iOS, Tabs+native-stack): allow for bottom, left, right extended layout edges with native stack header non-translucent #3012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

kligarski
Copy link
Contributor

Description

Previously, if native-stack's header was non-translucent, stack would not allow any extended edges, therefore preventing content from rendering under translucent tab bar controller (this was especially noticable with iOS 26).

Now, we only prevent from extending layout for top edge, where UINavigationController has its UINavigationBar.

I tested basic test screens (SimpleNativeStack, TestHeaderTitle, BottomTabsAndStack, HeaderOptions) on iOS 18 and 26 beta 3 and did not find any problems related to this change - edgesForExtendedLayout applies for system-related navigation bars and views and I don't think that we used those on any other edges until now - with native bottom tabs implementation.

Closes https://github.com/software-mansion/react-native-screens-labs/issues/216.

Moved from https://github.com/software-mansion/react-native-screens-labs/pull/243.

Changes

  • change edgesForExtendedLayout to all apart from top instead of none

Screenshots / GIFs

before after
edgesForExtendedLayout_before edgesForExtendedLayout_after

Test code and steps to reproduce

Open Tab4 on iOS 26.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kligarski
Copy link
Contributor Author

PR has been reviewed and approved before moving to main repo: https://github.com/software-mansion/react-native-screens-labs/pull/243#pullrequestreview-3028473502.

@kligarski kligarski merged commit 7fc48aa into main Jul 17, 2025
4 checks passed
@kligarski kligarski deleted the @kligarski/bottom-tabs-native-stack-insets branch July 17, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant