Skip to content

Conversation

zeyap
Copy link
Contributor

@zeyap zeyap commented Oct 3, 2025

Summary:

Changelog:

[Internal] [Changed] - create UIManagerAnimationBackend to replace forward declare class AnimationBackend

for other delegates in UIManager, we usually explicitly create an interface in UIManager package with the public APIs we want to expose, we can follow that pattern here, so we avoid the forward declaration without definition situation, and decoupling UIManager with AnimationBackend

also this way, in the future, animation runtimes that consume AnimationBackend can just include UIManagerAnimationBackend (where we expose all of public APIs of AnimationBackend) and remain somewhat decoupled too

Differential Revision: D83679693

zeyap added 2 commits October 3, 2025 13:36
Summary:

## Changelog:

[General] [Changed] - Move using declarations into AnimationBackend class

names like `facebook::react::Callback` is a bit too generic and it'll be included in the scope whenever AnimationBackend.h is included in; `StartOnRenderCallback` already exists in c++ native animated (there we also nest the `using`s under class)

Differential Revision: D83867098
…imationBackend`

Summary:
## Changelog:

[Internal] [Changed] - create UIManagerAnimationBackend to replace forward declare `class AnimationBackend`

for other delegates in UIManager, we usually explicitly create an interface in UIManager package with the public APIs we want to expose, we can follow that pattern here, so we avoid the forward declaration without definition situation, and decoupling UIManager with AnimationBackend

also this way, in the future, animation runtimes that consume AnimationBackend can just include `UIManagerAnimationBackend` (where we expose all of public APIs of AnimationBackend) and remain somewhat decoupled too

Differential Revision: D83679693
@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 3, 2025
Copy link

meta-codesync bot commented Oct 3, 2025

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

Copy link

meta-codesync bot commented Oct 3, 2025

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

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 meta-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants