fix(mobile): hide drawer on new mobile experience (#1642)

This commit is contained in:
Aman Harwara
2022-09-25 21:04:04 +05:30
committed by GitHub
parent 15957c71cb
commit 8614a638a4

View File

@@ -121,7 +121,13 @@ export const AppStackComponent = (props: ModalStackNavigationProp<'AppStack'>) =
[application], [application],
) )
if (IsMobileWeb) { if (!application) {
return null
}
const shouldOpenWebApp = application.getValue(AlwaysOpenWebAppOnLaunchKey, StorageValueModes.Nonwrapped) as boolean
if (IsMobileWeb || shouldOpenWebApp) {
return ( return (
<AppStack.Navigator <AppStack.Navigator
screenOptions={() => ({ screenOptions={() => ({
@@ -134,12 +140,6 @@ export const AppStackComponent = (props: ModalStackNavigationProp<'AppStack'>) =
) )
} }
if (!application) {
return null
}
const shouldOpenWebApp = application.getValue(AlwaysOpenWebAppOnLaunchKey, StorageValueModes.Nonwrapped) as boolean
return ( return (
<DrawerLayout <DrawerLayout
ref={drawerRef} ref={drawerRef}