Skip to content

Commit

Permalink
Update designSystem.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Feb 15, 2023
1 parent 1f3506c commit c3ac16e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/designSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {Colors, Typography} from 'react-native-ui-lib';
import {stores} from '../stores';
import {Icon} from '../components/icon';
import {Appearance} from './types/enums';
import {DrawerNavigationOptions} from '@react-navigation/drawer';

// =============
// | RN UI Lib |
Expand Down Expand Up @@ -150,13 +151,14 @@ export const screenDefaultOptions = (): NativeStackNavigationOptions => ({
}),
});

export const tabDefaultOptions = (): BottomTabNavigationOptions => ({
headerShown: false,
export const tabScreenDefaultOptions = (): BottomTabNavigationOptions => ({
tabBarActiveTintColor: Colors.primary,
tabBarInactiveTintColor: Colors.grey40,
tabBarStyle: {backgroundColor: Colors.bgColor, borderTopWidth: 0, elevation: 0},
});

export const drawerScreenDefaultOptions = (): DrawerNavigationOptions => ({});

export const getTabBarIcon =
(tabName: string) =>
({focused, color, size}: {focused: boolean; color: string; size: number}) =>
Expand Down

0 comments on commit c3ac16e

Please sign in to comment.