Skip to content

Commit 5978be2

Browse files
committed
refactor: styled bottom tabs
1 parent b22c870 commit 5978be2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/components/navigation/BottomTabs.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { TextStyle, ViewStyle } from 'react-native';
33
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
44
import { cssInterop } from 'nativewind';
55

6-
// expose the original tab component contains screen
7-
86
export function createStyledBottomTabs<ParamList extends Record<string, object | undefined>>() {
97
const StyledBottomTab = createBottomTabNavigator<ParamList>();
108

@@ -38,11 +36,9 @@ export function createStyledBottomTabs<ParamList extends Record<string, object |
3836
tabBarActiveTintColor: tabBarActiveTintColor?.color?.toString(),
3937
tabBarInactiveTintColor: tabBarInactiveTintColor?.color?.toString(),
4038
};
41-
// console.log(tabBarActiveTintColor?.color);
4239
return <StyledBottomTab.Navigator {...props} />;
4340
}
4441

45-
// wrapper
4642
const StyledBottomTabs = cssInterop(StyledTabsImpl, {
4743
tabBarClassName: 'tabBarStyle',
4844
headerClassName: 'headerStyle',

0 commit comments

Comments
 (0)