add - layout web
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from "react";
|
||||
import { Platform } from "react-native";
|
||||
import { createStackNavigator } from "@react-navigation/stack";
|
||||
|
||||
import { Palette } from "../styles";
|
||||
@@ -8,6 +9,8 @@ import ProjectSettings from "../screens/ProjectSettings";
|
||||
import AccountSettings from "../screens/AccountSettings";
|
||||
import Settings from "../screens/Profile/Settings";
|
||||
|
||||
const isWeb = Platform.OS === "web";
|
||||
|
||||
const screenOptions = {
|
||||
headerShown: false,
|
||||
cardOverlayEnabled: true,
|
||||
@@ -16,6 +19,12 @@ const screenOptions = {
|
||||
},
|
||||
headerTitleAlign: "center",
|
||||
headerBackTitleVisible: false,
|
||||
...(isWeb
|
||||
? {
|
||||
animationEnabled: false,
|
||||
gestureEnabled: false,
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
|
||||
const HomeStack = createStackNavigator();
|
||||
|
||||
Reference in New Issue
Block a user