Skip to content

Add a batched scheduler delegate call for animated prop updates - #58764

Closed
bartlomiejbloniarz wants to merge 2 commits into
animated-props-per-view-routingfrom
animated-props-routing
Closed

bartlomiejbloniarz wants to merge 2 commits into
animated-props-per-view-routingfrom
animated-props-routing

Conversation

@bartlomiejbloniarz

Copy link
Copy Markdown
Contributor

Summary:

The animation backend hands its synchronous updates to the platform one view at a time. This adds UIManager::synchronouslyUpdateAnimatedProps and a matching SchedulerDelegate call that receive a whole frame's updates at once, continuing #56771. The backend uses it when optimizedAnimatedPropUpdates is on. The default delegate implementation forwards to the existing per-view update, so platforms that don't implement it are unaffected.

Changelog:

[General] [Changed] - Add a batched scheduler delegate call for animated prop updates behind optimizedAnimatedPropUpdates

Test Plan:

  • New SchedulerDelegateTest.animatedPropsUseExistingViewUpdatesByDefault passes, covering raw and typed props.
  • The Android arm64 release build of the whole stack succeeds.
  • C++ API snapshots regenerated. Not built for iOS.

Summary:

The animation backend hands its synchronous updates to the platform one view at a time. This adds `UIManager::synchronouslyUpdateAnimatedProps` and a matching `SchedulerDelegate` call that receive a whole frame's updates at once, continuing #56771. The backend uses it when `optimizedAnimatedPropUpdates` is on. The default delegate implementation forwards to the existing per-view update, so platforms that don't implement it are unaffected.

Changelog:

[General][Changed] - Add a batched scheduler delegate call for animated prop updates behind `optimizedAnimatedPropUpdates`

Test Plan:

- New `SchedulerDelegateTest.animatedPropsUseExistingViewUpdatesByDefault` passes, covering raw and typed props.
- The Android arm64 release build of the whole stack succeeds.
- C++ API snapshots regenerated. Not built for iOS.
…s and scaffolding

Tests and C++ API snapshots for the change in the parent commit.
@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 Sep 30, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Sep 30, 2026
@bartlomiejbloniarz
bartlomiejbloniarz added this pull request to stack #58767 September 30, 2026 13:00
@github-actions

Copy link
Copy Markdown

Caution

Invalid Base Branch

The base branch for this PR is animated-props-per-view-routing, which is not main or a -stable branch.
Are you sure you want to target this branch?

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. p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant