From 2497c02e38a68db5d8256dd017622b889ceb28fb Mon Sep 17 00:00:00 2001 From: James Ide Date: Thu, 14 May 2015 15:56:48 -0700 Subject: [PATCH] [RCTBridge] Have RCTBridge.loading return RCTBatchedBridge.loading Summary: 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). Fixes #1199 Closes https://github.com/facebook/react-native/pull/1200 Github Author: James Ide Test Plan: Imported from GitHub, without a `Test Plan:` line. --- React/Base/RCTBridge.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index 750cb422f..a45c062cf 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -836,6 +836,11 @@ static id _latestJSExecutor; _batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self]; } +- (BOOL)isLoading +{ + return _batchedBridge.loading; +} + - (BOOL)isValid { return _batchedBridge.isValid;