fix(mobile): hide drawer on new mobile experience (#1642)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user