[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 <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
James Ide 2015-05-14 15:56:48 -07:00
parent e467fb7202
commit 2497c02e38
1 changed files with 5 additions and 0 deletions

View File

@ -836,6 +836,11 @@ static id<RCTJavaScriptExecutor> _latestJSExecutor;
_batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self];
}
- (BOOL)isLoading
{
return _batchedBridge.loading;
}
- (BOOL)isValid
{
return _batchedBridge.isValid;