Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FooterTab.js 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // @flow
  2. import { Platform } from "react-native";
  3. import variable from "./../variables/platform";
  4. export default (variables /*: * */ = variable) => {
  5. const platform = variables.platform;
  6. const footerTabTheme = {
  7. "NativeBase.Button": {
  8. ".active": {
  9. "NativeBase.Text": {
  10. color: variables.tabBarActiveTextColor,
  11. fontSize: variables.tabBarTextSize,
  12. lineHeight: 16
  13. },
  14. "NativeBase.Icon": {
  15. color: variables.tabBarActiveTextColor
  16. },
  17. "NativeBase.IconNB": {
  18. color: variables.tabBarActiveTextColor
  19. },
  20. backgroundColor: variables.tabActiveBgColor
  21. },
  22. flexDirection: null,
  23. backgroundColor: "transparent",
  24. borderColor: null,
  25. elevation: 0,
  26. shadowColor: null,
  27. shadowOffset: null,
  28. shadowRadius: null,
  29. shadowOpacity: null,
  30. alignSelf: "center",
  31. flex: 1,
  32. height: variables.footerHeight,
  33. justifyContent: "center",
  34. ".badge": {
  35. "NativeBase.Badge": {
  36. "NativeBase.Text": {
  37. fontSize: 11,
  38. fontWeight: platform === "ios" ? "600" : undefined,
  39. lineHeight: 14
  40. },
  41. top: -3,
  42. alignSelf: "center",
  43. left: 10,
  44. zIndex: 99,
  45. height: 18,
  46. padding: 1.7,
  47. paddingHorizontal: 3
  48. },
  49. "NativeBase.Icon": {
  50. marginTop: -18
  51. }
  52. },
  53. "NativeBase.Icon": {
  54. color: variables.tabBarTextColor
  55. },
  56. "NativeBase.IconNB": {
  57. color: variables.tabBarTextColor
  58. },
  59. "NativeBase.Text": {
  60. color: variables.tabBarTextColor,
  61. fontSize: variables.tabBarTextSize,
  62. lineHeight: 16
  63. }
  64. },
  65. backgroundColor: Platform.OS === "android"
  66. ? variables.footerDefaultBg
  67. : undefined,
  68. flexDirection: "row",
  69. justifyContent: "space-between",
  70. flex: 1,
  71. alignSelf: "stretch"
  72. };
  73. return footerTabTheme;
  74. };