File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,6 +219,9 @@ - (void)registerModules
219219 [_frameUpdateObservers addObject: moduleData];
220220 }
221221 }
222+
223+ [[NSNotificationCenter defaultCenter ] postNotificationName: RCTDidCreateNativeModules
224+ object: self ];
222225}
223226
224227- (void )initJS
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ RCT_EXTERN NSString *const RCTJavaScriptDidLoadNotification;
3333 */
3434RCT_EXTERN NSString *const RCTJavaScriptDidFailToLoadNotification;
3535
36+ /* *
37+ * This notification fires when the bridge created all registered native modules
38+ */
39+ RCT_EXTERN NSString *const RCTDidCreateNativeModules;
40+
3641/* *
3742 * This block can be used to instantiate modules that require additional
3843 * init parameters, or additional configuration prior to being used.
Original file line number Diff line number Diff line change 2020NSString *const RCTReloadNotification = @" RCTReloadNotification" ;
2121NSString *const RCTJavaScriptDidLoadNotification = @" RCTJavaScriptDidLoadNotification" ;
2222NSString *const RCTJavaScriptDidFailToLoadNotification = @" RCTJavaScriptDidFailToLoadNotification" ;
23+ NSString *const RCTDidCreateNativeModules = @" RCTDidCreateNativeModules" ;
2324
2425@class RCTBatchedBridge;
2526
You can’t perform that action at this time.
0 commit comments