Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/react-native/React/Base/RCTConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RCT_EXTERN NSString *const RCTJavaScriptDidFailToLoadNotification;
* the `[bridge moduleForClass:]` method.
*/
RCT_EXTERN NSString *const RCTDidInitializeModuleNotification;
RCT_EXTERN NSString *const RCTDidInitializeModuleNotificationModuleKey;

/*
* W3C Pointer Events
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/React/Base/RCTConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
NSString *const RCTJavaScriptWillStartLoadingNotification = @"RCTJavaScriptWillStartLoadingNotification";

NSString *const RCTDidInitializeModuleNotification = @"RCTDidInitializeModuleNotification";
NSString *const RCTDidInitializeModuleNotificationModuleKey = @"module";

NSString *const RCTNotifyEventDispatcherObserversOfEvent_DEPRECATED =
@"RCTNotifyEventDispatcherObserversOfEvent_DEPRECATED";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,10 @@ - (BOOL)_shouldCreateObjCModule:(Class)moduleClass
* TODO(T41180176): Investigate whether we can delete this after TM
* rollout.
*/
[[NSNotificationCenter defaultCenter] postNotificationName:RCTDidInitializeModuleNotification
object:nil
userInfo:@{@"module" : module, @"bridge" : [NSNull null]}];
[[NSNotificationCenter defaultCenter]
postNotificationName:RCTDidInitializeModuleNotification
object:nil
userInfo:@{RCTDidInitializeModuleNotificationModuleKey : module, @"bridge" : [NSNull null]}];

TurboModulePerfLogger::moduleCreateSetUpEnd(moduleName, moduleId);

Expand Down
Loading