Skip to content

Remove hideOffscreenVirtualViewsOnIOS feature flag#57225

Closed
sammy-SC wants to merge 2 commits into
react:mainfrom
sammy-SC:export-D108411518
Closed

Remove hideOffscreenVirtualViewsOnIOS feature flag#57225
sammy-SC wants to merge 2 commits into
react:mainfrom
sammy-SC:export-D108411518

Conversation

@sammy-SC

Copy link
Copy Markdown
Contributor

Summary:
The hideOffscreenVirtualViewsOnIOS flag gated hiding of offscreen VirtualViews on iOS (setting self.hidden) in RCTVirtualViewComponentView. It was never ramped and is being removed. The flag defaulted to false, so the gated branches never set hidden; deleting them restores the pre-flag behavior. The now-unused ReactNativeFeatureFlags.h import is also removed.

Removes the flag definition from ReactNativeFeatureFlags.config.js, the gated call sites in RCTVirtualViewComponentView.mm, and the regenerated feature-flag files (via yarn featureflags --update).

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D108411518

sammy-SC added 2 commits June 12, 2026 04:26
Summary:
The `enableDifferentiatorMutationVectorPreallocation` flag gated a mutation-vector pre-allocation optimization in the `Differentiator`. It was never ramped and is being removed. The flag defaulted to `false`, so this restores the pre-flag behavior by deleting the gated `reserve(...)` calls (an allocation hint with no effect on diffing results) and keeping the default `mutations.reserve(256)`.

Removes the flag definition from `ReactNativeFeatureFlags.config.js`, the gated call sites in `Differentiator.cpp`, and the regenerated feature-flag files (via `yarn featureflags --update`).

Changelog: [Internal]

Differential Revision: D108411519
Summary:
The `hideOffscreenVirtualViewsOnIOS` flag gated hiding of offscreen `VirtualView`s on iOS (setting `self.hidden`) in `RCTVirtualViewComponentView`. It was never ramped and is being removed. The flag defaulted to `false`, so the gated branches never set `hidden`; deleting them restores the pre-flag behavior. The now-unused `ReactNativeFeatureFlags.h` import is also removed.

Removes the flag definition from `ReactNativeFeatureFlags.config.js`, the gated call sites in `RCTVirtualViewComponentView.mm`, and the regenerated feature-flag files (via `yarn featureflags --update`).

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D108411518
@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 Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D108411518.

@meta-codesync meta-codesync Bot closed this in 3233436 Jun 16, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

This pull request has been merged in 3233436.

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. 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.

1 participant