xxxxxxxxxx
import { screenOptions } from "./ScreenOptions.tsx";
<Stack.Screen
name="ScreenName"
component={ScreenComponent}
options={screenOptions}
/>
// inside ScreenOptions.tsx
import { NativeStackNavigationOptions } from "@react-navigation/native-stack";
export const screenOptions: NativeStackNavigationOptions = {
gestureEnabled: false,
};