import { NativeStackNavigationOptions } from "@react-navigation/native-stack"; import { HeaderBackButton } from "../common/HeaderBackButton"; import { ParamListBase, RouteProp } from "@react-navigation/native"; type ICommonScreenOptions = | NativeStackNavigationOptions | ((prop: { route: RouteProp; navigation: any; }) => NativeStackNavigationOptions); export const commonScreenOptions: ICommonScreenOptions = { title: "", headerShown: true, headerTransparent: true, headerShadowVisible: false, headerLeft: () => , }; const routes = [ "actors/[actorId]", "albums/[albumId]", "artists/index", "artists/[artistId]", "items/page", "series/[id]", ]; export const nestedTabPageScreenOptions: Record = Object.fromEntries(routes.map((route) => [route, commonScreenOptions]));