From 10abad53441121c8485cb0d1fb0633eae083224f Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 15 Jul 2025 15:01:00 +0300 Subject: [PATCH] fix native --- src/view/shell/createNativeStackNavigatorWithAuth.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx index 6ddc689359..43f14dac22 100644 --- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx +++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx @@ -28,7 +28,7 @@ import { import {PWI_ENABLED} from '#/lib/build-flags' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {useGate} from '#/lib/statsig/statsig' -import {isWeb} from '#/platform/detection' +import {isNative, isWeb} from '#/platform/detection' import {useSession} from '#/state/session' import {useOnboardingState} from '#/state/shell' import { @@ -116,7 +116,7 @@ function NativeStackNavigator({ const {leftNavMinimal} = useLayoutBreakpoints() const gate = useGate() - if (!hasSession && (!PWI_ENABLED || activeRouteRequiresAuth)) { + if (!hasSession && (!PWI_ENABLED || activeRouteRequiresAuth || isNative)) { if (gate('new_auth_flow')) { // I don't like how we have to split it like this, would prefer something neater if (isWeb) {