Skip to content
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

SafeAreaView shouldn't dirty layout on clone by default #39554

Closed
wants to merge 1 commit into from

Conversation

javache
Copy link
Member

@javache javache commented Sep 20, 2023

Summary: There's no need to auto-dirty this component on clone (which will happen every time one of its children is cloned), if we update the padding values in ComponentDescriptor::adopt this will already dirty as necessary.

Differential Revision: D49058812

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 20, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49058812

@analysis-bot
Copy link

analysis-bot commented Sep 20, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,333,620 +3
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,573,515 +2
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 2f86aaf
Branch: main

Summary:

There's no need to auto-dirty this component on clone (which will happen every time one of its children is cloned), if we update the padding values in `ComponentDescriptor::adopt` this will [already dirty as necessary](https://github.com/facebook/react-native/blob/7888338295476f4d4f00733309e54b8d22318e1e/packages/react-native/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewComponentDescriptor.h#L28).

Reviewed By: sammy-SC

Differential Revision: D49058812
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49058812

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 20, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ecf1b84.

@javache javache deleted the export-D49058812 branch September 21, 2023 11:18
ShevO27 pushed a commit to ShevO27/react-native that referenced this pull request Sep 26, 2023
Summary:
Pull Request resolved: facebook#39554

There's no need to auto-dirty this component on clone (which will happen every time one of its children is cloned), if we update the padding values in `ComponentDescriptor::adopt` this will [already dirty as necessary](https://github.com/facebook/react-native/blob/7888338295476f4d4f00733309e54b8d22318e1e/packages/react-native/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewComponentDescriptor.h#L28).

Reviewed By: sammy-SC

Differential Revision: D49058812

fbshipit-source-id: ea1ac8a1aa96c7ea24dcc48627a500f8c7fc2aae
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants