From 8614a638a4bfc8fdf97020bf1fc147c62998cf3b Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Sun, 25 Sep 2022 21:04:04 +0530 Subject: [PATCH] fix(mobile): hide drawer on new mobile experience (#1642) --- packages/mobile/src/AppStack.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/mobile/src/AppStack.tsx b/packages/mobile/src/AppStack.tsx index 01a5035e6..338f026f9 100644 --- a/packages/mobile/src/AppStack.tsx +++ b/packages/mobile/src/AppStack.tsx @@ -121,7 +121,13 @@ export const AppStackComponent = (props: ModalStackNavigationProp<'AppStack'>) = [application], ) - if (IsMobileWeb) { + if (!application) { + return null + } + + const shouldOpenWebApp = application.getValue(AlwaysOpenWebAppOnLaunchKey, StorageValueModes.Nonwrapped) as boolean + + if (IsMobileWeb || shouldOpenWebApp) { return ( ({ @@ -134,12 +140,6 @@ export const AppStackComponent = (props: ModalStackNavigationProp<'AppStack'>) = ) } - if (!application) { - return null - } - - const shouldOpenWebApp = application.getValue(AlwaysOpenWebAppOnLaunchKey, StorageValueModes.Nonwrapped) as boolean - return (