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.1KB

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