diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/build-flags.ts | 1 | ||||
-rw-r--r-- | src/view/shell/createNativeStackNavigatorWithAuth.tsx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/build-flags.ts b/src/lib/build-flags.ts index 28b650b6f..faefdd6ab 100644 --- a/src/lib/build-flags.ts +++ b/src/lib/build-flags.ts @@ -1 +1,2 @@ export const LOGIN_INCLUDE_DEV_SERVERS = true +export const PWI_ENABLED = false 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) { |