styles.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import { StyleSheet, Dimensions } from 'react-native';
  2. import { Colors } from 'src/theme';
  3. const { width: screenWidth } = Dimensions.get('window');
  4. export const styles = StyleSheet.create({
  5. container: {
  6. flex: 1
  7. },
  8. tabBar: {
  9. backgroundColor: 'transparent',
  10. elevation: 0,
  11. shadowOpacity: 0,
  12. marginTop: 0
  13. },
  14. tabView: {
  15. flex: 1
  16. },
  17. tabStyle: {
  18. padding: 0,
  19. marginHorizontal: 2,
  20. backgroundColor: 'transparent',
  21. alignItems: 'center',
  22. justifyContent: 'center',
  23. width: 'auto'
  24. },
  25. tabLabelWrapper: {
  26. alignItems: 'center',
  27. justifyContent: 'center',
  28. position: 'relative'
  29. },
  30. tabContent: {
  31. alignItems: 'center',
  32. justifyContent: 'center',
  33. position: 'relative',
  34. width: screenWidth
  35. },
  36. tabLabelContainer: {
  37. borderRadius: 20,
  38. paddingHorizontal: 12,
  39. paddingVertical: 8,
  40. borderWidth: 1,
  41. borderColor: 'rgba(15, 63, 79, 0.3)',
  42. backgroundColor: 'transparent',
  43. flexDirection: 'row',
  44. alignItems: 'center',
  45. justifyContent: 'center',
  46. gap: 5
  47. },
  48. tabLabelFocused: {
  49. backgroundColor: Colors.ORANGE,
  50. borderColor: Colors.ORANGE
  51. },
  52. label: {
  53. fontSize: 12,
  54. textTransform: 'none',
  55. color: Colors.DARK_BLUE,
  56. fontWeight: '600',
  57. textAlign: 'center'
  58. },
  59. labelFocused: {
  60. color: 'white'
  61. },
  62. indicator: {
  63. height: 0,
  64. backgroundColor: 'transparent'
  65. },
  66. icon: {
  67. alignSelf: 'center'
  68. },
  69. notificationContainer: {
  70. position: 'absolute',
  71. top: -5,
  72. right: -5
  73. },
  74. gridContainer: {
  75. flex: 1
  76. },
  77. contentContainer: {
  78. flexDirection: 'row',
  79. height: '100%'
  80. }
  81. });