diff options
Diffstat (limited to 'src/view/shell/createNativeStackNavigatorWithAuth.tsx')
-rw-r--r-- | src/view/shell/createNativeStackNavigatorWithAuth.tsx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx index 968e149f6..938213c31 100644 --- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx +++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx @@ -1,6 +1,11 @@ +import * as React from 'react' +import {View} from 'react-native' +import {PWI_ENABLED, NEW_ONBOARDING_ENABLED} from '#/lib/build-flags' + // Based on @react-navigation/native-stack/src/createNativeStackNavigator.ts // MIT License // Copyright (c) 2017 React Navigation Contributors + import { createNavigatorFactory, EventArg, @@ -16,28 +21,24 @@ import type { NativeStackNavigationEventMap, NativeStackNavigationOptions, } from '@react-navigation/native-stack' -import {NativeStackView} from '@react-navigation/native-stack' import type {NativeStackNavigatorProps} from '@react-navigation/native-stack/src/types' -import {isWeb} from 'platform/detection' -import * as React from 'react' -import {View} from 'react-native' +import {NativeStackView} from '@react-navigation/native-stack' -import {NEW_ONBOARDING_ENABLED, PWI_ENABLED} from '#/lib/build-flags' +import {BottomBarWeb} from './bottom-bar/BottomBarWeb' +import {DesktopLeftNav} from './desktop/LeftNav' +import {DesktopRightNav} from './desktop/RightNav' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' -import {Deactivated} from '#/screens/Deactivated' -import {Onboarding as NewOnboarding} from '#/screens/Onboarding' -import {useSession} from '#/state/session' import {useOnboardingState} from '#/state/shell' import { useLoggedOutView, useLoggedOutViewControls, } from '#/state/shell/logged-out' - +import {useSession} from '#/state/session' +import {isWeb} from 'platform/detection' +import {Deactivated} from '#/screens/Deactivated' import {LoggedOut} from '../com/auth/LoggedOut' import {Onboarding} from '../com/auth/Onboarding' -import {BottomBarWeb} from './bottom-bar/BottomBarWeb' -import {DesktopLeftNav} from './desktop/LeftNav' -import {DesktopRightNav} from './desktop/RightNav' +import {Onboarding as NewOnboarding} from '#/screens/Onboarding' type NativeStackNavigationOptionsWithAuth = NativeStackNavigationOptions & { requireAuth?: boolean |