You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.tsx 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import React from 'react';
  2. import { IconCalendar, IconGear, IconRestore } from '../base/icons/svg';
  3. import BaseTheme from '../base/ui/components/BaseTheme';
  4. // @ts-ignore
  5. import TabIcon from './components/TabIcon';
  6. // @ts-ignore
  7. export const ACTIVE_TAB_COLOR = BaseTheme.palette.icon01;
  8. export const INACTIVE_TAB_COLOR = BaseTheme.palette.icon03;
  9. export const tabBarOptions = {
  10. tabBarActiveTintColor: ACTIVE_TAB_COLOR,
  11. tabBarInactiveTintColor: INACTIVE_TAB_COLOR,
  12. tabBarLabelStyle: {
  13. fontSize: 12
  14. },
  15. tabBarStyle: { // @ts-ignore
  16. backgroundColor: BaseTheme.palette.screen02Header
  17. }
  18. };
  19. export const recentListTabBarOptions = {
  20. tabBarIcon: ({ focused }: { focused: boolean; }) => (
  21. <TabIcon
  22. focused = { focused }
  23. src = { IconRestore } />
  24. )
  25. };
  26. export const calendarListTabBarOptions = {
  27. tabBarIcon: ({ focused }: { focused: boolean; }) => (
  28. <TabIcon
  29. focused = { focused }
  30. src = { IconCalendar } />
  31. )
  32. };
  33. export const settingsTabBarOptions = {
  34. tabBarIcon: ({ focused }: { focused: boolean; }) => (
  35. <TabIcon
  36. focused = { focused }
  37. src = { IconGear } />
  38. )
  39. };