Skip to content

Commit

Permalink
feat: enable interaction during transition (#775)
Browse files Browse the repository at this point in the history
Removed disabling interaction during transition. It should remove the delay of the ability to interact with new screen, but also introduce the ability to click on the transitioning screens.
  • Loading branch information
WoLewicki committed Feb 2, 2021
1 parent 67e287c commit 2447869
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ios/RNSScreenContainer.m
Expand Up @@ -193,15 +193,9 @@ - (void)updateContainer
}
}

if (screenRemoved || screenAdded) {
// we disable interaction for the duration of the transition until one of the screens changes its state to "onTop"
self.userInteractionEnabled = NO;
}

for (RNSScreenView *screen in _reactSubviews) {
if (screen.activityState == RNSActivityStateOnTop) {
// if there is an "onTop" screen it means the transition has ended so we restore interactions
self.userInteractionEnabled = YES;
[screen notifyFinishTransitioning];
}
}
Expand Down

0 comments on commit 2447869

Please sign in to comment.