import { ViewStyle } from "react-native"; import { Tabs } from "expo-router"; import { cssInterop } from "nativewind"; function StyledTabsImpl({ tabBarStyle, headerStyle, ...props }: React.ComponentProps & { tabBarStyle?: ViewStyle; headerStyle?: ViewStyle; }) { props.screenOptions = { ...props.screenOptions, tabBarStyle, headerStyle, }; return ; } export const StyledTabs = cssInterop(StyledTabsImpl, { tabBarClassName: "tabBarStyle", headerClassName: "headerStyle", sceneContainerClassName: "sceneContainerStyle", });