mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 11:16:06 +08:00
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:
committed by
Facebook Github Bot
parent
efa2fdd78a
commit
18e0f84349
@@ -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, @"");
|
||||
|
||||
Reference in New Issue
Block a user