Skip to content

Commit

Permalink
Merge pull request #37601 from margelo/fix/37354-gesture-direction-le…
Browse files Browse the repository at this point in the history
…ft-modal

fix: gesture direction for left modal stack
  • Loading branch information
youssef-lr authored Mar 5, 2024
2 parents 9411a08 + 10ed674 commit 5787691
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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',
Expand Down

0 comments on commit 5787691

Please sign in to comment.