Modules export constants if any superclass exports them (2nd try)
Reviewed By: fkgozali Differential Revision: D4098128 fbshipit-source-id: 73d7f068373b3a9dd5af1881b4cca4e54856cec6
This commit is contained in:
parent
bd867c1105
commit
7063ff466a
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
// If a module overrides `constantsToExport` then we must assume that it
|
// 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.
|
// 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
|
- (instancetype)initWithModuleClass:(Class)moduleClass
|
||||||
|
|
Loading…
Reference in New Issue