From 7063ff466a939bafb5158576e0201d14e3892631 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Mon, 31 Oct 2016 04:52:58 -0700 Subject: [PATCH] Modules export constants if any superclass exports them (2nd try) Reviewed By: fkgozali Differential Revision: D4098128 fbshipit-source-id: 73d7f068373b3a9dd5af1881b4cca4e54856cec6 --- React/Base/RCTModuleData.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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