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
This commit is contained in:
Dan Abramov
2019-06-21 12:10:34 -07:00
committed by Facebook Github Bot
parent 42e35b3b56
commit a225d1aa5e
+3 -3
View File
@@ -44,8 +44,8 @@
#import <React/RCTFBSystrace.h>
#endif
#if RCT_DEV && __has_include("RCTDevLoadingView.h")
#import "RCTDevLoadingView.h"
#if RCT_DEV && __has_include(<React/RCTDevLoadingView.h>)
#import <React/RCTDevLoadingView.h>
#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(<React/RCTDevLoadingView.h>)
// 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];