From a225d1aa5e28c3569176d19c6154e283f28c876f Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 21 Jun 2019 12:10:34 -0700 Subject: [PATCH] Fix progress indication on iOS Summary: We didn't update the header name. The ref was weak so it just didn't pull in the module. Reviewed By: fkgozali Differential Revision: D15944635 fbshipit-source-id: 8599c091a2265f807662c3deea4bd3c59e1a8aa8 --- React/CxxBridge/RCTCxxBridge.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index 93eac488eab..545c0efd7a6 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -44,8 +44,8 @@ #import #endif -#if RCT_DEV && __has_include("RCTDevLoadingView.h") -#import "RCTDevLoadingView.h" +#if RCT_DEV && __has_include() +#import #endif #define RCTAssertJSThread() \ @@ -377,7 +377,7 @@ struct RCTInstanceCallback : public InstanceCallback { sourceCode = source.data; dispatch_group_leave(prepareBridge); } onProgress:^(RCTLoadingProgress *progressData) { -#if RCT_DEV && __has_include("RCTDevLoadingView.h") +#if RCT_DEV && __has_include() // Note: RCTDevLoadingView should have been loaded at this point, so no need to allow lazy loading. RCTDevLoadingView *loadingView = [weakSelf moduleForName:RCTBridgeModuleNameForClass([RCTDevLoadingView class]) lazilyLoadIfNecessary:NO];