Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ios/BottomTabsAfterInitialTabAttacher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ - (void)attach:(UITabBarController *)bottomTabsController {
for (UIViewController *viewController in bottomTabsController.deselectedViewControllers) {
dispatch_async(dispatch_get_main_queue(), ^{
UIWindow *preloadWindow = [[UIWindow alloc] initWithFrame:CGRectZero];
// Clip the preload window so the deselected tab's full-screen reactView,
// which is briefly hosted here while it renders, can't draw outside the
// zero-frame window and flicker over the already-visible selected tab.
preloadWindow.clipsToBounds = YES;
preloadWindow.hidden = NO;

dispatch_group_t ready = dispatch_group_create();
Expand Down
4 changes: 4 additions & 0 deletions ios/BottomTabsTogetherAttacher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ - (void)attach:(RNNBottomTabsController *)bottomTabsController {
dispatch_group_t ready = dispatch_group_create();

UIWindow *preloadWindow = [[UIWindow alloc] initWithFrame:CGRectZero];
// Clip the preload window so the full-screen reactViews hosted here while
// they render can't draw outside the zero-frame window. Today the splash
// screen masks this, but without clipping it's a latent flicker.
preloadWindow.clipsToBounds = YES;
preloadWindow.hidden = NO;

NSMapTable *reactViewToParent = [NSMapTable strongToStrongObjectsMapTable];
Expand Down