Repository navigation
Apply safe area insets RTL-aware in RNTester and helloworld (#59645) - #59645
Merged
Merged
Conversation
|
@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D128337176. |
Abbondanzo
added a commit
to Abbondanzo/react-native
that referenced
this pull request
Oct 29, 2026
) Summary: Pull Request resolved: react#59645 RNTester's platform test results view and the helloworld app pad themselves from `experimental_onSafeAreaInsetsChange`, mapping `insets.left`/`insets.right` straight to `paddingLeft`/`paddingRight`. Insets are physical edges, but Yoga treats `paddingLeft`/`paddingRight` as start/end when `swapLeftAndRightInRTL` is on, so in RTL a right-edge cutout was left unpadded while the left edge got its padding. Both callers now swap the left and right insets in that case, as the internal `SafeAreaView` already does. Also updates the LogBox inspector, inspector footer and inspector header Fantom snapshots for the internal `SafeAreaView`'s wrapper view. Changelog: [Internal] Reviewed By: andrewdacenko Differential Revision: D128337176
Abbondanzo
force-pushed
the
export-D128337176
branch
from
October 29, 2026 21:32
ef6e883 to
4db69fd
Compare
) Summary: Pull Request resolved: react#59645 RNTester's platform test results view and the helloworld app pad themselves from `experimental_onSafeAreaInsetsChange`, mapping `insets.left`/`insets.right` straight to `paddingLeft`/`paddingRight`. Insets are physical edges, but Yoga treats `paddingLeft`/`paddingRight` as start/end when `swapLeftAndRightInRTL` is on, so in RTL a right-edge cutout was left unpadded while the left edge got its padding. Both callers now swap the left and right insets in that case, as the internal `SafeAreaView` already does. Changelog: [Internal] Reviewed By: andrewdacenko Differential Revision: D128337176
Abbondanzo
force-pushed
the
export-D128337176
branch
from
November 30, 2026 15:36
4db69fd to
4b41f3f
Compare
andrewdacenko
approved these changes
Nov 30, 2026
andrewdacenko
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Collaborator
|
This pull request was successfully merged by @Abbondanzo in 8067726 When will my fix make it into a release? | How to file a pick request? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
RNTester's platform test results view and the helloworld app pad themselves from
experimental_onSafeAreaInsetsChange, mappinginsets.left/insets.rightstraight topaddingLeft/paddingRight. Insets are physical edges, but Yoga treatspaddingLeft/paddingRightas start/end whenswapLeftAndRightInRTLis on, so in RTL a right-edge cutout was left unpadded while the left edge got its padding. Both callers now swap the left and right insets in that case, as the internalSafeAreaViewalready does.Changelog:
[Internal]
Reviewed By: andrewdacenko
Differential Revision: D128337176