diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-04 12:45:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 12:45:40 -0800 |
commit | 971c402788ce0be1d005471513b3b9ebf9ff6613 (patch) | |
tree | f5e38f639e7929595a20f61564a433b86fa17ed2 /src/view/shell/createNativeStackNavigatorWithAuth.tsx | |
parent | a687d3f028313c50ec153b2a4a3822ba8c923d1a (diff) | |
download | voidsky-971c402788ce0be1d005471513b3b9ebf9ff6613.tar.zst |
Add PWI build flag (#2082)
Diffstat (limited to 'src/view/shell/createNativeStackNavigatorWithAuth.tsx')
-rw-r--r-- | src/view/shell/createNativeStackNavigatorWithAuth.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx index c7b5d1d2e..43dc28159 100644 --- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx +++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx @@ -1,5 +1,6 @@ import * as React from 'react' import {View} from 'react-native' +import {PWI_ENABLED} from '#/lib/build-flags' // Based on @react-navigation/native-stack/src/createNativeStackNavigator.ts // MIT License @@ -99,7 +100,7 @@ function NativeStackNavigator({ const {showLoggedOut} = useLoggedOutView() const {setShowLoggedOut} = useLoggedOutViewControls() const {isMobile} = useWebMediaQueries() - if (activeRouteRequiresAuth && !hasSession) { + if ((!PWI_ENABLED || activeRouteRequiresAuth) && !hasSession) { return <LoggedOut /> } if (showLoggedOut) { |