Skip to content

Commit 3cee67b

Browse files
committed
[RCTBridge] Have RCTBridge.loading return RCTBatchedBridge.loading
The parent RCTBridge no longer tracks the JS loading since that has been handed off to the RCTBatchedBridge. To make the `loading` property accurate again, just expose the batch bridge's loading property from the parent bridge (note: I didn'r make it KVO-compliant).
1 parent 4bec3fe commit 3cee67b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

React/Base/RCTBridge.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,11 @@ - (void)setUp
834834
_batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self];
835835
}
836836

837+
- (BOOL)isLoading
838+
{
839+
return _batchedBridge.loading;
840+
}
841+
837842
- (BOOL)isValid
838843
{
839844
return _batchedBridge.isValid;

0 commit comments

Comments
 (0)