Skip to content

Conversation

@yungsters
Copy link
Contributor

Summary:
Cleans up the enableVirtualViewExperimental feature flag, so that only the experimental one is ever used.

This does not delete the original implementation or rename the experimental one. I'll do those separately as follow-ups.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D90193651

Summary:

Ships the feature flag to use `useInsertionEffect` in `Pressability`, instead of `useEffect`.

Using `useInsertionEffect` enables `Pressability` to behave more predictability in component trees with `<Activity mode="hidden">` because the events are scheduled more similarly to platform controls (e.g. focus and blur events will still fire even when "hidden").

Changelog:
[General][Changed] - `Pressable` no longer unmounts event listeners in a hidden `Activity`.

Reviewed By: lunaleaps, javache

Differential Revision: D90192717
Summary:
Cleans up the `enableVirtualViewExperimental` feature flag, so that only the experimental one is ever used.

This does not delete the original implementation or rename the experimental one. I'll do those separately as follow-ups.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D90193651
@meta-codesync
Copy link

meta-codesync bot commented Jan 6, 2026

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

@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 Jan 6, 2026
@meta-codesync meta-codesync bot closed this in 758a3db Jan 7, 2026
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @yungsters in 758a3db

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 7, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 7, 2026

This pull request has been merged in 758a3db.

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