blob: 976731bcf50f3123b3513e73d8a575e24692348a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { ViewStyle } from "react-native";
import { Tabs } from "expo-router";
import { cssInterop } from "nativewind";
function StyledTabsImpl({
tabBarStyle,
headerStyle,
...props
}: React.ComponentProps<typeof Tabs> & {
tabBarStyle?: ViewStyle;
headerStyle?: ViewStyle;
}) {
props.screenOptions = {
...props.screenOptions,
tabBarStyle,
headerStyle,
};
return <Tabs {...props} />;
}
export const StyledTabs = cssInterop(StyledTabsImpl, {
tabBarClassName: "tabBarStyle",
headerClassName: "headerStyle",
sceneContainerClassName: "sceneContainerStyle",
});
|