TabBar.js 1.3 KB

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