mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-05 07:07:26 +08:00
Defer constants gathering until after setup
Reviewed By: javache Differential Revision: D2986095 fb-gh-sync-id: 1f449e69ca74466e7951d621ceaf624abe034139 shipit-source-id: 1f449e69ca74466e7951d621ceaf624abe034139
This commit is contained in:
committed by
Facebook Github Bot 6
parent
8d44c2db4f
commit
d7d47d8120
@@ -37,6 +37,14 @@
|
||||
*/
|
||||
- (void)finishSetupForInstance;
|
||||
|
||||
/**
|
||||
* Calls `constantsToExport` on the module and stores the result. Note that
|
||||
* this will init the module if it has not already been created. This method
|
||||
* can be called on any thread, but may block the main thread briefly if the
|
||||
* module implements `constantsToExport`.
|
||||
*/
|
||||
- (void)gatherConstants;
|
||||
|
||||
@property (nonatomic, strong, readonly) Class moduleClass;
|
||||
@property (nonatomic, copy, readonly) NSString *name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user