react-native-macos/ReactCommon/turbomodule/core
Ramanpreet Nara 8ad695b10e Broadcast TurboModule creation
Summary:
When TurboModules are created, we need to broadcast this event using `NSNotificationCenter`. This is important because a number of TurboModules/ObjC classes listen to this notification and perform side effects.

I found these using https://fburl.com/codesearch/j0a9p3dr.
- FBReactKitServerSnapshotTests: After the RCTExceptionsManager is initialized, it assigns itself as the delegate to the RCTExceptionsManager instance.
- FBProfilePictureUploadFlowController: After FBProfileFrameNativeModule is initialized, it calls `[module setFlowController: self]`
- RCTFBSession: After every NativeModule is initialized, if that NativeModule conforms to the RCTFBSessionModule protocol, assign the session to it.
- TwilightLocalMedia: Hack to figure out when the bridge is initialized.
- FBMarketplaceMenuItemHandler: After FBMarketplaceNativeModule is initialized, attach a data source obtained from the session to the module. Then, attach module to data source.
- RCTModuleInitTests: Set local state based on if certain modules are initialized (https://fburl.com/e34kezb5).
- IGReactModule: When the RCTImageLoader is initialized, set it's image cache to `[IGReactImageCache new]`.
- RCTIGUserSession: Like RCTFBSession
- FBReactModuleTracker: This keeps a list of all dispatched notifications (for some reason).
- RCTModuleInitNotificationRaceTests: Sets self.didDetectViewManagerInit to true if RCTTestViewManager is initialized.

Reviewed By: fkgozali

Differential Revision: D14281557

fbshipit-source-id: 9fcf1bb5f5650fcc3a3e50c6d93405b0b618e271
2019-03-01 12:29:34 -08:00
..
platform Broadcast TurboModule creation 2019-03-01 12:29:34 -08:00
BUCK xplat// -> fbsource//xplat/ for xplat/js 2019-02-14 23:53:32 -08:00
JSCallInvoker.cpp Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
JSCallInvoker.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
LongLivedObject.cpp Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
LongLivedObject.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboCxxModule.cpp TM iOS: avoid bad memory access when passing prop name to a lambda 2019-02-11 17:29:14 -08:00
TurboCxxModule.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboModule.cpp TM iOS C++: don't throw if a method is not found 2019-02-20 14:55:08 -08:00
TurboModule.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboModuleBinding.cpp Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboModuleBinding.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboModuleUtils.cpp Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00
TurboModuleUtils.h Moved TurboModule C++ core to github 2018-12-26 17:18:21 -08:00