mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 11:40:33 +08:00
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:
committed by
Facebook Github Bot
parent
5431607c6d
commit
04ea9762e2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user