Modules export constants if any superclass exports them

Reviewed By: fkgozali

Differential Revision: D4081915

fbshipit-source-id: 3a99033cd156c1393f7c8bbbb45f43772eb3a8df
This commit is contained in:
Pieter De Baets 2016-10-27 04:17:45 -07:00 committed by Facebook Github Bot
parent 8bc30af6c8
commit af3f656d97

View File

@ -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