You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9ec1d48
Browse filesBrowse the repository at this point in the historyBrowse files
Make animationbackend implementation headers private (#58858)
Summary:
Pull Request resolved: #58858
`AnimatedPropsSerializer.h`, `AnimatedPropsRegistry.h` and `AnimationBackendCommitHook.h` are implementation details of `AnimationBackend` with no users outside React Native, so lower them from "for frameworks" to private.
`AnimationBackend.h` (for frameworks) previously included the registry and commit hook headers, which would leak private headers to its consumers, so we decouple them:
- forward-declare `AnimatedPropsRegistry`, `AnimationBackendCommitHook` and `SurfaceUpdates`;
- hold the commit hook through `std::unique_ptr` and define the destructor out of line;
- make `commitUpdates` private; it is only called from within `AnimationBackend`.
Changelog: [Internal]
Reviewed By: christophpurrer
Differential Revision: D123418519
0 commit comments