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
This commit is contained in:
zhongwuzw
2019-05-15 12:31:30 -07:00
committed by Facebook Github Bot
parent bcc1d999a8
commit 36f9a4aca7
@@ -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;
}