Skip to content

Export RCTDidInitializeModuleNotificationModuleKey for the module userInfo key#57341

Open
eapen wants to merge 1 commit into
react:mainfrom
eapen:export-D109716080
Open

Export RCTDidInitializeModuleNotificationModuleKey for the module userInfo key#57341
eapen wants to merge 1 commit into
react:mainfrom
eapen:export-D109716080

Conversation

@eapen

@eapen eapen commented Jun 25, 2026

Copy link
Copy Markdown

Summary:
Add RCTDidInitializeModuleNotificationModuleKey to RCTConstants.h/.m so observers of RCTDidInitializeModuleNotification can read the module out of userInfo via a named constant instead of the bare @"module" literal. Update the poster in RCTTurboModuleManager.mm to use the new symbol so producer and consumer share a single source of truth.

This follows the existing naming convention in RCTConstants.h (RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey).

Purely additive — no existing API affected.

Changelog:
[iOS][Added] - Export RCTDidInitializeModuleNotificationModuleKey constant for RCTDidInitializeModuleNotification userInfo

Differential Revision: D109716080

…serInfo key

Summary:
Add `RCTDidInitializeModuleNotificationModuleKey` to `RCTConstants.h`/`.m` so observers of `RCTDidInitializeModuleNotification` can read the module out of `userInfo` via a named constant instead of the bare `@"module"` literal. Update the poster in `RCTTurboModuleManager.mm` to use the new symbol so producer and consumer share a single source of truth.

This follows the existing naming convention in `RCTConstants.h` (`RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey`).

Purely additive — no existing API affected.

Changelog:
[iOS][Added] - Export `RCTDidInitializeModuleNotificationModuleKey` constant for `RCTDidInitializeModuleNotification` userInfo

Differential Revision: D109716080
@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 25, 2026
@meta-codesync

meta-codesync Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

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