2022-09-09 09:22:30 +00:00
|
|
|
/* eslint-disable lines-around-comment */
|
2021-11-17 12:54:00 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-09-09 09:22:30 +00:00
|
|
|
import { IconEventNote, IconRestore, IconSettings } from '../base/icons/svg';
|
2021-11-17 12:54:00 +00:00
|
|
|
import BaseTheme from '../base/ui/components/BaseTheme';
|
|
|
|
|
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
|
2021-11-17 12:54:00 +00:00
|
|
|
export const INACTIVE_TAB_COLOR = BaseTheme.palette.tab01Disabled;
|
|
|
|
|
|
|
|
export const tabBarOptions = {
|
2022-01-07 14:11:58 +00:00
|
|
|
tabBarActiveTintColor: BaseTheme.palette.icon01,
|
|
|
|
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
|
2021-11-17 12:54:00 +00:00
|
|
|
backgroundColor: BaseTheme.palette.screen01Header
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
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 }
|
|
|
|
src = { IconEventNote } />
|
|
|
|
)
|
|
|
|
};
|
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 }
|
|
|
|
src = { IconSettings } />
|
|
|
|
)
|
|
|
|
};
|