iOS: register lazy nativemodules on startup when Chrome is attached

Summary:
@public
This allows apps to specify custom lazy modules that they need to load during chrome debugging. This is because lazy modules won't be available on start up, hence these modules will be missing in JS land, causing problems.

Reviewed By: shergin

Differential Revision: D12899408

fbshipit-source-id: dca313648e994b22e3ee5afec856ef76470065f9
This commit is contained in:
Kevin Gozali
2018-11-02 00:14:13 -07:00
committed by Facebook Github Bot
parent 5431607c6d
commit 04ea9762e2
2 changed files with 57 additions and 0 deletions

View File

@@ -72,4 +72,9 @@
- (void)loadSourceForBridge:(RCTBridge *)bridge
withBlock:(RCTSourceLoadBlock)loadCallback;
/**
* Retrieve the list of lazy-native-modules names for the given bridge.
*/
- (NSDictionary<NSString *, Class> *)extraLazyModuleClassesForBridge:(RCTBridge *)bridge;
@end