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],
)
if (IsMobileWeb) {
if (!application) {
return null
}
const shouldOpenWebApp = application.getValue(AlwaysOpenWebAppOnLaunchKey, StorageValueModes.Nonwrapped) as boolean
if (IsMobileWeb || shouldOpenWebApp) {
return (
<AppStack.Navigator
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 (
<DrawerLayout
ref={drawerRef}