From 36f9a4aca72bcf708e7c40616e288b80ee0c97ab Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 15 May 2019 12:26:23 -0700 Subject: [PATCH] TM iOS: Consolidate RCTDidInitializeModuleNotification sender to batchedBridge (#24866) Summary: Consolidate sender of notification to `batchedBridge` for TM and old module system, old module implementation can see https://github.com/facebook/react-native/blob/dc893756b82051d48d6a776aeef1186c31cf310d/React/Base/RCTModuleData.mm#L191-L193. ## Changelog [iOS] [Fixed] - Conlidate RCTDidInitializeModuleNotification sender to batchedBridge Pull Request resolved: https://github.com/facebook/react-native/pull/24866 Differential Revision: D15357566 Pulled By: RSNara fbshipit-source-id: 479575c1e9781d8aea9fa3aea9e0283d24df7e81 --- .../turbomodule/core/platform/ios/RCTTurboModuleManager.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm index 09ad85b4a50..85e16f25c5f 100644 --- a/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm +++ b/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm @@ -239,7 +239,7 @@ static Class getFallbackClassFromName(const char *name) { * TurboModules are rolled out */ [[NSNotificationCenter defaultCenter] postNotificationName:RCTDidInitializeModuleNotification - object:_bridge.parentBridge + object:_bridge userInfo:@{@"module": module, @"bridge": RCTNullIfNil(_bridge.parentBridge)}]; return module; }