Skip to content

Control trait::hidden support through feature flag#54112

Closed
lenaic wants to merge 1 commit intofacebook:mainfrom
lenaic:export-D84289662
Closed

Control trait::hidden support through feature flag#54112
lenaic wants to merge 1 commit intofacebook:mainfrom
lenaic:export-D84289662

Conversation

@lenaic
Copy link
Copy Markdown

@lenaic lenaic commented Oct 9, 2025

Summary:
This diff adds the possibility to control the use of Trait::Hidden on Android platforms through feature flags. The feature flag is Android specific and only accessed on Android platforms.

Changelog: [Internal]

Differential Revision: D84289662

Summary:
This diff adds the possibility to control the use of `Trait::Hidden` on Android platforms through feature flags. The feature flag is Android specific and only accessed on Android platforms.

Changelog: [Internal]

Differential Revision: D84289662
@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 Oct 9, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Oct 9, 2025

@lenaic has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84289662.

lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Oct 9, 2025
Summary:

This diff adds the possibility to control the use of `Trait::Hidden` on Android platforms through feature flags. The feature flag is Android specific and only accessed on Android platforms.

Changelog: [Internal]

Differential Revision: D84289662
lenaic pushed a commit to lenaic/react-native-macos that referenced this pull request Oct 10, 2025
Summary:

This diff adds the possibility to control the use of `Trait::Hidden` on Android platforms through feature flags. The feature flag is Android specific and only accessed on Android platforms.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D84289662
@meta-codesync meta-codesync Bot closed this in 8d245e9 Oct 10, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 10, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Oct 10, 2025

This pull request has been merged in 8d245e9.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Nick Lefever in 8d245e9

When will my fix make it into a release? | How to file a pick request?

SudoPlz added a commit to SudoPlz/react-native that referenced this pull request Apr 29, 2026
Mirrors useTraitHiddenOnAndroid (facebook#54112) on iOS so apps can opt out of
the `Trait::Hidden` slice-skip optimization in
sliceChildShadowNodeViewPairs. When the flag is `false`, Hidden subtrees
remain in the mount slice and are hidden via `UIView.hidden = YES`
through the existing UIView+ComponentViewProtocol path (D8460108, 2018)
instead of being torn down via REMOVE + DELETE.

Default `true` so iOS behaviour is unchanged for everyone who doesn't
override it.
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants