about summary refs log tree commit diff
path: root/src/view/shell/createNativeStackNavigatorWithAuth.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-08-08 12:14:02 -0500
committerGitHub <noreply@github.com>2024-08-08 18:14:02 +0100
commit3ea8eb60134c9e7b48290f5ccc9e0c87ff779e23 (patch)
tree139db5f1ff41ad95bee8639673b41a0813ecc069 /src/view/shell/createNativeStackNavigatorWithAuth.tsx
parente7a0055a8514a134d3fc897b5058d14070518b2e (diff)
downloadvoidsky-3ea8eb60134c9e7b48290f5ccc9e0c87ff779e23.tar.zst
Remove native_pwi_disabled (#4896)
* Remove native_pwi_disabled

* Remove search button
Diffstat (limited to 'src/view/shell/createNativeStackNavigatorWithAuth.tsx')
-rw-r--r--src/view/shell/createNativeStackNavigatorWithAuth.tsx9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx
index 203e7e507..7951eef75 100644
--- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx
+++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx
@@ -29,7 +29,6 @@ import {
   useLoggedOutView,
   useLoggedOutViewControls,
 } from '#/state/shell/logged-out'
-import {useGate} from 'lib/statsig/statsig'
 import {isNative, isWeb} from 'platform/detection'
 import {Deactivated} from '#/screens/Deactivated'
 import {Onboarding} from '#/screens/Onboarding'
@@ -51,7 +50,6 @@ function NativeStackNavigator({
   screenOptions,
   ...rest
 }: NativeStackNavigatorProps) {
-  const gate = useGate()
   // --- this is copy and pasted from the original native stack navigator ---
   const {state, descriptors, navigation, NavigationContent} =
     useNavigationBuilder<
@@ -102,12 +100,7 @@ function NativeStackNavigator({
   const {showLoggedOut} = useLoggedOutView()
   const {setShowLoggedOut} = useLoggedOutViewControls()
   const {isMobile, isTabletOrMobile} = useWebMediaQueries()
-  if (
-    !hasSession &&
-    (!PWI_ENABLED ||
-      activeRouteRequiresAuth ||
-      (isNative && gate('native_pwi_disabled')))
-  ) {
+  if (!hasSession && (!PWI_ENABLED || activeRouteRequiresAuth || isNative)) {
     return <LoggedOut />
   }
   if (hasSession && currentAccount?.signupQueued) {