Skip to content

Commit 5787691

Browse files
authored
Merge pull request #37601 from margelo/fix/37354-gesture-direction-left-modal
fix: gesture direction for left modal stack
2 parents 9411a08 + 10ed674 commit 5787691

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const commonScreenOptions: StackNavigationOptions = {
1515
animationTypeForReplace: 'push',
1616
};
1717

18-
const SLIDE_LEFT_OUTPUT_RANGE_MULTIPLIER = -1;
19-
2018
type GetRootNavigatorScreenOptions = (isSmallScreenWidth: boolean, styles: ThemeStyles, StyleUtils: StyleUtilsType) => ScreenOptions;
2119

2220
const getRootNavigatorScreenOptions: GetRootNavigatorScreenOptions = (isSmallScreenWidth, themeStyles, StyleUtils) => {
@@ -41,8 +39,9 @@ const getRootNavigatorScreenOptions: GetRootNavigatorScreenOptions = (isSmallScr
4139
},
4240
leftModalNavigator: {
4341
...commonScreenOptions,
44-
cardStyleInterpolator: (props) => modalCardStyleInterpolator(isSmallScreenWidth, false, props, SLIDE_LEFT_OUTPUT_RANGE_MULTIPLIER),
42+
cardStyleInterpolator: (props) => modalCardStyleInterpolator(isSmallScreenWidth, false, props),
4543
presentation: 'transparentModal',
44+
gestureDirection: 'horizontal-inverted',
4645

4746
// We want pop in LHP since there are some flows that would work weird otherwise
4847
animationTypeForReplace: 'pop',

0 commit comments

Comments
 (0)