diff --git a/React/Base/RCTModuleData.mm b/React/Base/RCTModuleData.mm index 213dab09e..67e08f5df 100644 --- a/React/Base/RCTModuleData.mm +++ b/React/Base/RCTModuleData.mm @@ -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