TabBar.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // @flow
  2. import variable from './../variables/platform';
  3. export default (variables /* : * */ = variable) => {
  4. const tabBarTheme = {
  5. '.tabIcon': {
  6. height: undefined
  7. },
  8. '.vertical': {
  9. height: 60
  10. },
  11. 'NativeBase.Button': {
  12. '.transparent': {
  13. 'NativeBase.Text': {
  14. fontSize: variables.tabFontSize,
  15. color: variables.sTabBarActiveTextColor,
  16. fontWeight: '400'
  17. },
  18. 'NativeBase.IconNB': {
  19. color: variables.sTabBarActiveTextColor
  20. }
  21. },
  22. 'NativeBase.IconNB': {
  23. color: variables.sTabBarActiveTextColor
  24. },
  25. 'NativeBase.Text': {
  26. fontSize: variables.tabFontSize,
  27. color: variables.sTabBarActiveTextColor,
  28. fontWeight: '400'
  29. },
  30. '.isTabActive': {
  31. 'NativeBase.Text': {
  32. fontWeight: '900'
  33. }
  34. },
  35. flex: 1,
  36. alignSelf: 'stretch',
  37. alignItems: 'center',
  38. justifyContent: 'center',
  39. borderRadius: null,
  40. borderBottomColor: 'transparent',
  41. backgroundColor: variables.tabBgColor
  42. },
  43. height: 45,
  44. flexDirection: 'row',
  45. justifyContent: 'space-around',
  46. borderWidth: 1,
  47. borderTopWidth: 0,
  48. borderLeftWidth: 0,
  49. borderRightWidth: 0,
  50. borderBottomColor: '#ccc',
  51. backgroundColor: variables.tabBgColor
  52. };
  53. return tabBarTheme;
  54. };