Footer.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import variable from "./../variables/platform";
  2. export default (variables = variable) => {
  3. const platformStyle = variables.platformStyle;
  4. const platform = variables.platform;
  5. const footerTheme = {
  6. "NativeBase.Left": {
  7. "NativeBase.Button": {
  8. ".transparent": {
  9. backgroundColor: "transparent",
  10. borderColor: null,
  11. elevation: 0,
  12. shadowColor: null,
  13. shadowOffset: null,
  14. shadowRadius: null,
  15. shadowOpacity: null
  16. },
  17. "NativeBase.Icon": {
  18. color: variables.topTabBarActiveTextColor
  19. },
  20. "NativeBase.IconNB": {
  21. color: variables.topTabBarActiveTextColor
  22. },
  23. alignSelf: null
  24. },
  25. flex: 1,
  26. alignSelf: "center",
  27. alignItems: "flex-start"
  28. },
  29. "NativeBase.Body": {
  30. flex: 1,
  31. alignItems: "center",
  32. alignSelf: "center",
  33. flexDirection: "row",
  34. "NativeBase.Button": {
  35. alignSelf: "center",
  36. ".transparent": {
  37. backgroundColor: "transparent",
  38. borderColor: null,
  39. elevation: 0,
  40. shadowColor: null,
  41. shadowOffset: null,
  42. shadowRadius: null,
  43. shadowOpacity: null
  44. },
  45. ".full": {
  46. height: variables.footerHeight,
  47. flex: 1
  48. },
  49. "NativeBase.Icon": {
  50. color: variables.topTabBarActiveTextColor
  51. },
  52. "NativeBase.IconNB": {
  53. color: variables.topTabBarActiveTextColor
  54. }
  55. }
  56. },
  57. "NativeBase.Right": {
  58. "NativeBase.Button": {
  59. ".transparent": {
  60. backgroundColor: "transparent",
  61. borderColor: null,
  62. elevation: 0,
  63. shadowColor: null,
  64. shadowOffset: null,
  65. shadowRadius: null,
  66. shadowOpacity: null
  67. },
  68. "NativeBase.Icon": {
  69. color: variables.topTabBarActiveTextColor
  70. },
  71. "NativeBase.IconNB": {
  72. color: variables.topTabBarActiveTextColor
  73. },
  74. alignSelf: null
  75. },
  76. flex: 1,
  77. alignSelf: "center",
  78. alignItems: "flex-end"
  79. },
  80. backgroundColor: variables.footerDefaultBg,
  81. flexDirection: "row",
  82. justifyContent: "center",
  83. borderTopWidth: platform === "ios" && platformStyle !== "material"
  84. ? variables.borderWidth
  85. : undefined,
  86. borderColor: platform === "ios" && platformStyle !== "material"
  87. ? "#cbcbcb"
  88. : undefined,
  89. height: variables.footerHeight,
  90. elevation: 3,
  91. left: 0,
  92. right: 0
  93. };
  94. return footerTheme;
  95. };