Skip to content

Commit

Permalink
Merge pull request Expensify#41950 from gijoe0295/gijoe/41157
Browse files Browse the repository at this point in the history
fix: no animation between workspace feature pages
  • Loading branch information
yuwenmemon authored May 10, 2024
2 parents f8f6e1a + 03f9643 commit b1356de
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import {createStackNavigator} from '@react-navigation/stack';
import React from 'react';
import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
import getRootNavigatorScreenOptions from '@libs/Navigation/AppNavigator/getRootNavigatorScreenOptions';
import SCREENS from '@src/SCREENS';
import useModalScreenOptions from './useModalScreenOptions';

const StackNavigator = createStackNavigator();

function WorkspaceSettingsModalStackNavigator() {
const screenOptions = useModalScreenOptions((styles) => ({cardStyle: styles.navigationScreenCardStyle, headerShown: false}));
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const {isSmallScreenWidth} = useWindowDimensions();
const screenOptions = getRootNavigatorScreenOptions(isSmallScreenWidth, styles, StyleUtils);

return (
<StackNavigator.Navigator screenOptions={screenOptions}>
<StackNavigator.Navigator screenOptions={screenOptions.centralPaneNavigator}>
<StackNavigator.Screen
key={SCREENS.WORKSPACE.PROFILE}
name={SCREENS.WORKSPACE.PROFILE}
Expand Down

0 comments on commit b1356de

Please sign in to comment.