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];