Skip to content

Remove animatedShouldUseSingleOp feature flag (#57364)#57364

Open
zeyap wants to merge 1 commit into
react:mainfrom
zeyap:export-D109570192
Open

Remove animatedShouldUseSingleOp feature flag (#57364)#57364
zeyap wants to merge 1 commit into
react:mainfrom
zeyap:export-D109570192

Conversation

@zeyap

@zeyap zeyap commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary:

The single-op batching guard now lives entirely in NativeAnimatedHelper, where isSingleOpBatching is gated on Platform.OS === 'android', queueAndExecuteBatchedOperations being available, and !cxxNativeAnimatedEnabled(). The animatedShouldUseSingleOp flag defaulted to true and no longer carries any of that logic, so it is fully redundant. Remove the flag from the config, drop its now-vestigial term from isSingleOpBatching in both NativeAnimatedHelper.js and the macOS variant, and regenerate ReactNativeFeatureFlags.js.

This is behavior-preserving: with the flag at its default true, isSingleOpBatching evaluates identically to before on every platform.

Changelog:
[Internal]

Reviewed By: javache

Differential Revision: D109570192

@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 29, 2026
@meta-codesync

meta-codesync Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot changed the title Remove animatedShouldUseSingleOp feature flag Remove animatedShouldUseSingleOp feature flag (#57364) Jun 30, 2026
@zeyap zeyap force-pushed the export-D109570192 branch from 280f656 to 59cd54d Compare June 30, 2026 13:41
zeyap added a commit to zeyap/react-native that referenced this pull request Jun 30, 2026
Summary:

The single-op batching guard now lives entirely in `NativeAnimatedHelper`, where `isSingleOpBatching` is gated on `Platform.OS === 'android'`, `queueAndExecuteBatchedOperations` being available, and `!cxxNativeAnimatedEnabled()`. The `animatedShouldUseSingleOp` flag defaulted to `true` and no longer carries any of that logic, so it is fully redundant. Remove the flag from the config, drop its now-vestigial term from `isSingleOpBatching` in both `NativeAnimatedHelper.js` and the macOS variant, and regenerate `ReactNativeFeatureFlags.js`.

This is behavior-preserving: with the flag at its default `true`, `isSingleOpBatching` evaluates identically to before on every platform.

Changelog:
[Internal]

Reviewed By: javache

Differential Revision: D109570192
Summary:

The single-op batching guard now lives entirely in `NativeAnimatedHelper`, where `isSingleOpBatching` is gated on `Platform.OS === 'android'`, `queueAndExecuteBatchedOperations` being available, and `!cxxNativeAnimatedEnabled()`. The `animatedShouldUseSingleOp` flag defaulted to `true` and no longer carries any of that logic, so it is fully redundant. Remove the flag from the config, drop its now-vestigial term from `isSingleOpBatching` in both `NativeAnimatedHelper.js` and the macOS variant, and regenerate `ReactNativeFeatureFlags.js`.

This is behavior-preserving: with the flag at its default `true`, `isSingleOpBatching` evaluates identically to before on every platform.

Changelog:
[Internal]

Reviewed By: javache

Differential Revision: D109570192
@zeyap zeyap force-pushed the export-D109570192 branch from 59cd54d to 178b464 Compare June 30, 2026 13:44
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant