From 244786947a35d76ef8795dac6a73a15b8ef17549 Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Tue, 2 Feb 2021 11:41:00 +0100 Subject: [PATCH] feat: enable interaction during transition (#775) 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. --- ios/RNSScreenContainer.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ios/RNSScreenContainer.m b/ios/RNSScreenContainer.m index ee95474dc..2a00f28e5 100644 --- a/ios/RNSScreenContainer.m +++ b/ios/RNSScreenContainer.m @@ -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]; } }