Skip to content

Cover react/renderer/animations with guards (#58185) - #58185

Closed
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117863703
Closed

Cover react/renderer/animations with guards (#58185)#58185
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117863703

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary:

Classifies react/renderer/animations:animations as a "for frameworks" target under the C++ stable API three-tier visibility model. Adds #include <react/cxxstableapi/FrameworksGuard.h> to the module's six exported headers (LayoutAnimationCallbackWrapper.h, LayoutAnimationDriver.h, LayoutAnimationKeyFrameManager.h, conversions.h, primitives.h, utils.h), and wires the guard dependency into BUCK and CMake. No CocoaPods change is needed: the module ships as a subspec of React-Fabric, whose parent spec already declares React-cxxstableapi and calls mark_as_react_native_build.

Consumers that opt into RN_STRICT_API now get a warning if they include these headers directly, which they can acknowledge with RN_ALLOW_FRAMEWORKS; without that flag the guards are inert, so no existing build changes behaviour.

Changelog: [Internal]

Differential Revision: D117863703

@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 Aug 28, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Aug 28, 2026
@meta-codesync

meta-codesync Bot commented Aug 28, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117863703.

Summary:

Classifies `react/renderer/animations:animations` as a "for frameworks" target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/FrameworksGuard.h>` to the module's six exported headers (`LayoutAnimationCallbackWrapper.h`, `LayoutAnimationDriver.h`, `LayoutAnimationKeyFrameManager.h`, `conversions.h`, `primitives.h`, `utils.h`), and wires the guard dependency into BUCK and CMake. No CocoaPods change is needed: the module ships as a subspec of `React-Fabric`, whose parent spec already declares `React-cxxstableapi` and calls `mark_as_react_native_build`.

Consumers that opt into `RN_STRICT_API` now get a warning if they include these headers directly, which they can acknowledge with `RN_ALLOW_FRAMEWORKS`; without that flag the guards are inert, so no existing build changes behaviour.

Changelog: [Internal]

Differential Revision: D117863703
@meta-codesync meta-codesync Bot changed the title Cover react/renderer/animations with guards Cover react/renderer/animations with guards (#58185) Sep 1, 2026

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 73778b3 Sep 2, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 2, 2026
@meta-codesync

meta-codesync Bot commented Sep 2, 2026

Copy link
Copy Markdown

This pull request has been merged in 73778b3.

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. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants