您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

constants.js 944B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import React from 'react';
  3. import { IconEventNote, IconRestore } from '../base/icons';
  4. import BaseTheme from '../base/ui/components/BaseTheme';
  5. import TabIcon from './components/TabIcon';
  6. export const INACTIVE_TAB_COLOR = BaseTheme.palette.tab01Disabled;
  7. export const tabBarOptions = {
  8. tabBarActiveTintColor: BaseTheme.palette.icon01,
  9. tabBarInactiveTintColor: INACTIVE_TAB_COLOR,
  10. tabBarLabelStyle: {
  11. fontSize: 12
  12. },
  13. tabBarStyle: {
  14. backgroundColor: BaseTheme.palette.screen01Header
  15. }
  16. };
  17. export const recentListTabBarOptions = {
  18. // $FlowExpectedError
  19. tabBarIcon: ({ focused }) => (
  20. <TabIcon
  21. focused = { focused }
  22. src = { IconRestore } />
  23. )
  24. };
  25. export const calendarListTabBarOptions = {
  26. // $FlowExpectedError
  27. tabBarIcon: ({ focused }) => (
  28. <TabIcon
  29. focused = { focused }
  30. src = { IconEventNote } />
  31. )
  32. };