@@ -10,6 +10,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
1010import useThemeStyles from '@hooks/useThemeStyles' ;
1111import { isMobileSafari } from '@libs/Browser' ;
1212import GoogleTagManager from '@libs/GoogleTagManager' ;
13+ import useCustomScreenOptions from '@libs/Navigation/AppNavigator/useCustomScreenOptions' ;
1314import createPlatformStackNavigator from '@libs/Navigation/PlatformStackNavigation/createPlatformStackNavigator' ;
1415import type { PlatformStackNavigationOptions } from '@libs/Navigation/PlatformStackNavigation/types' ;
1516import type { OnboardingModalNavigatorParamList } from '@libs/Navigation/types' ;
@@ -29,7 +30,6 @@ import OnboardingWorkspaces from '@pages/OnboardingWorkspaces';
2930import CONST from '@src/CONST' ;
3031import ONYXKEYS from '@src/ONYXKEYS' ;
3132import SCREENS from '@src/SCREENS' ;
32- import useCustomScreenOptions from '../useCustomScreenOptions' ;
3333import Overlay from './Overlay' ;
3434
3535const Stack = createPlatformStackNavigator < OnboardingModalNavigatorParamList > ( ) ;
@@ -86,19 +86,12 @@ function OnboardingModalNavigator() {
8686
8787 const defaultScreenOptions : PlatformStackNavigationOptions = {
8888 headerShown : false ,
89- web : isMobileSafari ( )
90- ? {
91- ...customScreenOptions . web ,
92- cardStyle : {
93- height : '100%' ,
94- } ,
95- }
96- : {
97- cardStyleInterpolator : CardStyleInterpolators . forHorizontalIOS ,
98- cardStyle : {
99- height : '100%' ,
100- } ,
101- } ,
89+ web : {
90+ ...( isMobileSafari ( ) ? customScreenOptions . web : { cardStyleInterpolator : CardStyleInterpolators . forHorizontalIOS } ) ,
91+ cardStyle : {
92+ height : '100%' ,
93+ } ,
94+ } ,
10295 } ;
10396
10497 return (
0 commit comments