mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Modules export constants if any superclass exports them
Reviewed By: fkgozali Differential Revision: D4081915 fbshipit-source-id: 3a99033cd156c1393f7c8bbbb45f43772eb3a8df
This commit is contained in:
parent
8bc30af6c8
commit
af3f656d97
@ -51,7 +51,7 @@
|
||||
|
||||
// If a module overrides `constantsToExport` then we must assume that it
|
||||
// must be called on the main thread, because it may need to access UIKit.
|
||||
_hasConstantsToExport = RCTClassOverridesInstanceMethod(_moduleClass, @selector(constantsToExport));
|
||||
_hasConstantsToExport = [_moduleClass instancesRespondToSelector:@selector(constantsToExport)];
|
||||
}
|
||||
|
||||
- (instancetype)initWithModuleClass:(Class)moduleClass
|
||||
|
Loading…
x
Reference in New Issue
Block a user