Skip to content

Commit

Permalink
RCTSurface: Use async dispatch to register root shadow view
Browse files Browse the repository at this point in the history
Summary: We don't really need sync dispatch here. We only need sequential execution of our UIManager blocks.

Reviewed By: rsnara

Differential Revision: D6367069

fbshipit-source-id: cc675aafd6c762506048bcf65c24e54080b013a5
  • Loading branch information
shergin authored and facebook-github-bot committed Dec 4, 2017
1 parent 081f7d1 commit da17b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/Surface/RCTSurface.mm
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ - (void)_registerRootViewTag
}

RCTUIManager *uiManager = batchedBridge.uiManager;
RCTUnsafeExecuteOnUIManagerQueueSync(^{
RCTExecuteOnUIManagerQueue(^{
[uiManager registerRootViewTag:self->_rootViewTag];

RCTSurfaceRootShadowView *rootShadowView =
Expand Down

0 comments on commit da17b23

Please sign in to comment.