mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
42e35b3b56
commit
a225d1aa5e
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user