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";
|
||||
import { Routes } from "./Routes";
|
||||
@@ -59,6 +60,8 @@ import CreatePseudo from "../screens/CreatePseudo";
|
||||
import { ChooseCoverType } from "../screens/cover/ChooseCoverType";
|
||||
import ValidateCover from "../screens/cover/ValidateCover";
|
||||
|
||||
const isWeb = Platform.OS === "web";
|
||||
|
||||
const screenOptions = {
|
||||
headerShown: false,
|
||||
cardOverlayEnabled: true,
|
||||
@@ -68,6 +71,13 @@ const screenOptions = {
|
||||
headerTitleStyle: {},
|
||||
headerTitleAlign: "center",
|
||||
headerBackTitleVisible: false,
|
||||
...(isWeb
|
||||
? {
|
||||
// Avoid web-specific pointerEvents issues by disabling animations/gestures
|
||||
animationEnabled: false,
|
||||
gestureEnabled: false,
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
|
||||
const MainStack = createStackNavigator();
|
||||
|
||||
Reference in New Issue
Block a user