Use just `_bridge` instead of `batchedBridge` when actual bridge is already batched one

Reviewed By: javache

Differential Revision: D4989251

fbshipit-source-id: 939b54459d14e9bddd60be82787c2ca4d116200c
This commit is contained in:
Valentin Shergin 2017-05-03 11:07:42 -07:00 committed by Facebook Github Bot
parent efa2fdd78a
commit 18e0f84349
1 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
[self showLoadingView];
// Immediately schedule the application to be started
[self bundleFinishedLoading:[_bridge batchedBridge]];
// Immediately schedule the application to be started.
// (Sometimes actual `_bridge` is already batched bridge here.)
[self bundleFinishedLoading:([_bridge batchedBridge] ?: _bridge)];
}
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"");