From 10ed6746370f6bd6fc85719746ee134d4cc6d932 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Fri, 1 Mar 2024 13:42:43 +0100 Subject: [PATCH] fix: gesture direction for left modal stack --- .../Navigation/AppNavigator/getRootNavigatorScreenOptions.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts b/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts index c3a69bbd7ccf9..1dd9322e0b473 100644 --- a/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts +++ b/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts @@ -15,8 +15,6 @@ const commonScreenOptions: StackNavigationOptions = { animationTypeForReplace: 'push', }; -const SLIDE_LEFT_OUTPUT_RANGE_MULTIPLIER = -1; - type GetRootNavigatorScreenOptions = (isSmallScreenWidth: boolean, styles: ThemeStyles, StyleUtils: StyleUtilsType) => ScreenOptions; const getRootNavigatorScreenOptions: GetRootNavigatorScreenOptions = (isSmallScreenWidth, themeStyles, StyleUtils) => { @@ -41,8 +39,9 @@ const getRootNavigatorScreenOptions: GetRootNavigatorScreenOptions = (isSmallScr }, leftModalNavigator: { ...commonScreenOptions, - cardStyleInterpolator: (props) => modalCardStyleInterpolator(isSmallScreenWidth, false, props, SLIDE_LEFT_OUTPUT_RANGE_MULTIPLIER), + cardStyleInterpolator: (props) => modalCardStyleInterpolator(isSmallScreenWidth, false, props), presentation: 'transparentModal', + gestureDirection: 'horizontal-inverted', // We want pop in LHP since there are some flows that would work weird otherwise animationTypeForReplace: 'pop',