TabHeading.js 941 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import variable from "./../variables/platform";
  2. export default (variables = variable) => {
  3. const platform = variables.platform;
  4. const tabHeadingTheme = {
  5. flexDirection: "row",
  6. backgroundColor: variables.tabDefaultBg,
  7. flex: 1,
  8. alignItems: "center",
  9. justifyContent: "center",
  10. ".scrollable": {
  11. paddingHorizontal: 20,
  12. flex: platform === "android" ? 0 : 1,
  13. minWidth: platform === "android" ? undefined : 60
  14. },
  15. "NativeBase.Text": {
  16. color: variables.topTabBarTextColor,
  17. marginHorizontal: 7
  18. },
  19. "NativeBase.Icon": {
  20. color: variables.topTabBarTextColor,
  21. fontSize: platform === "ios" ? 26 : undefined
  22. },
  23. ".active": {
  24. "NativeBase.Text": {
  25. color: variables.topTabBarActiveTextColor,
  26. fontWeight: "600"
  27. },
  28. "NativeBase.Icon": {
  29. color: variables.topTabBarActiveTextColor
  30. }
  31. }
  32. };
  33. return tabHeadingTheme;
  34. };