2021-11-17 12:54:00 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-11-08 10:24:32 +00:00
|
|
|
import { IconCalendar, IconGear, IconRestore } from '../base/icons/svg';
|
2022-11-11 08:20:33 +00:00
|
|
|
import BaseTheme from '../base/ui/components/BaseTheme';
|
2021-11-17 12:54:00 +00:00
|
|
|
|
2022-09-09 09:22:30 +00:00
|
|
|
// @ts-ignore
|
2021-11-17 12:54:00 +00:00
|
|
|
import TabIcon from './components/TabIcon';
|
|
|
|
|
2022-10-18 16:21:48 +00:00
|
|
|
// @ts-ignore
|
2022-11-09 10:59:17 +00:00
|
|
|
export const ACTIVE_TAB_COLOR = BaseTheme.palette.icon01;
|
|
|
|
export const INACTIVE_TAB_COLOR = BaseTheme.palette.icon03;
|
2021-11-17 12:54:00 +00:00
|
|
|
|
|
|
|
export const tabBarOptions = {
|
2022-11-09 10:59:17 +00:00
|
|
|
tabBarActiveTintColor: ACTIVE_TAB_COLOR,
|
2022-01-07 14:11:58 +00:00
|
|
|
tabBarInactiveTintColor: INACTIVE_TAB_COLOR,
|
|
|
|
tabBarLabelStyle: {
|
2021-11-17 12:54:00 +00:00
|
|
|
fontSize: 12
|
|
|
|
},
|
2022-10-18 16:21:48 +00:00
|
|
|
tabBarStyle: { // @ts-ignore
|
2022-11-09 10:59:17 +00:00
|
|
|
backgroundColor: BaseTheme.palette.screen02Header
|
2021-11-17 12:54:00 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export const recentListTabBarOptions = {
|
2022-09-09 09:22:30 +00:00
|
|
|
tabBarIcon: ({ focused }: { focused: boolean; }) => (
|
2021-11-17 12:54:00 +00:00
|
|
|
<TabIcon
|
|
|
|
focused = { focused }
|
|
|
|
src = { IconRestore } />
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
export const calendarListTabBarOptions = {
|
2022-09-09 09:22:30 +00:00
|
|
|
tabBarIcon: ({ focused }: { focused: boolean; }) => (
|
2021-11-17 12:54:00 +00:00
|
|
|
<TabIcon
|
|
|
|
focused = { focused }
|
2022-11-08 10:24:32 +00:00
|
|
|
src = { IconCalendar } />
|
2021-11-17 12:54:00 +00:00
|
|
|
)
|
|
|
|
};
|
2022-07-28 07:28:29 +00:00
|
|
|
|
|
|
|
export const settingsTabBarOptions = {
|
2022-09-09 09:22:30 +00:00
|
|
|
tabBarIcon: ({ focused }: { focused: boolean; }) => (
|
2022-07-28 07:28:29 +00:00
|
|
|
<TabIcon
|
|
|
|
focused = { focused }
|
2022-11-08 10:24:32 +00:00
|
|
|
src = { IconGear } />
|
2022-07-28 07:28:29 +00:00
|
|
|
)
|
|
|
|
};
|