Skip to content

Commit

Permalink
Merge pull request #53381 from software-mansion-labs/adamgrzybowski/f…
Browse files Browse the repository at this point in the history
…ix-transparency-for-modal-navigators
  • Loading branch information
mountiny authored Dec 2, 2024
2 parents 8498e71 + d82b96e commit 95d4e35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,24 +519,24 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
/>
<RootStack.Screen
name={NAVIGATORS.EXPLANATION_MODAL_NAVIGATOR}
options={rootNavigatorOptions.onboardingModalNavigator}
options={rootNavigatorOptions.basicModalNavigator}
component={ExplanationModalNavigator}
/>
<RootStack.Screen
name={NAVIGATORS.FEATURE_TRANING_MODAL_NAVIGATOR}
options={rootNavigatorOptions.onboardingModalNavigator}
options={rootNavigatorOptions.basicModalNavigator}
component={FeatureTrainingModalNavigator}
listeners={modalScreenListeners}
/>
<RootStack.Screen
name={NAVIGATORS.WELCOME_VIDEO_MODAL_NAVIGATOR}
options={rootNavigatorOptions.onboardingModalNavigator}
options={rootNavigatorOptions.basicModalNavigator}
component={WelcomeVideoModalNavigator}
/>
{isOnboardingCompleted === false && (
<RootStack.Screen
name={NAVIGATORS.ONBOARDING_MODAL_NAVIGATOR}
options={{...rootNavigatorOptions.onboardingModalNavigator, gestureEnabled: false}}
options={{...rootNavigatorOptions.basicModalNavigator, gestureEnabled: false}}
component={OnboardingModalNavigator}
listeners={{
focus: () => {
Expand Down
6 changes: 3 additions & 3 deletions src/libs/Navigation/AppNavigator/useRootNavigatorOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import useModalCardStyleInterpolator from './useModalCardStyleInterpolator';

type RootNavigatorOptions = {
rightModalNavigator: PlatformStackNavigationOptions;
onboardingModalNavigator: PlatformStackNavigationOptions;
basicModalNavigator: PlatformStackNavigationOptions;
leftModalNavigator: PlatformStackNavigationOptions;
homeScreen: PlatformStackNavigationOptions;
fullScreen: PlatformStackNavigationOptions;
Expand Down Expand Up @@ -51,9 +51,9 @@ const useRootNavigatorOptions = () => {
cardStyleInterpolator: (props: StackCardInterpolationProps) => modalCardStyleInterpolator({props}),
},
},
onboardingModalNavigator: {
basicModalNavigator: {
presentation: Presentation.TRANSPARENT_MODAL,
web: {
presentation: Presentation.TRANSPARENT_MODAL,
cardOverlayEnabled: false,
cardStyle: {
...StyleUtils.getNavigationModalCardStyle(),
Expand Down

0 comments on commit 95d4e35

Please sign in to comment.