[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:
parent
e467fb7202
commit
2497c02e38
|
@ -836,6 +836,11 @@ static id<RCTJavaScriptExecutor> _latestJSExecutor;
|
|||
_batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self];
|
||||
}
|
||||
|
||||
- (BOOL)isLoading
|
||||
{
|
||||
return _batchedBridge.loading;
|
||||
}
|
||||
|
||||
- (BOOL)isValid
|
||||
{
|
||||
return _batchedBridge.isValid;
|
||||
|
|
Loading…
Reference in New Issue