From 4c2ea95fb950d229c1b72f5759d4a5dc293e2ce6 Mon Sep 17 00:00:00 2001 From: James Ide Date: Fri, 8 May 2015 06:06:33 -0700 Subject: [PATCH] [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't make it KVO-compliant). --- React/Base/RCTBridge.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index c98e3648b56b8b..16fd6b3bf9d8a4 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -835,6 +835,11 @@ - (void)setUp _batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self]; } +- (BOOL)isLoading +{ + return _batchedBridge.loading; +} + - (BOOL)isValid { return _batchedBridge.isValid;