styles.tsx 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. import { Platform } from 'react-native';
  2. import { StyleSheet } from 'react-native';
  3. import { Colors } from 'src/theme';
  4. import { getFontSize } from 'src/utils';
  5. export const styles = StyleSheet.create({
  6. replyContent: {},
  7. replyAuthorName: {
  8. fontWeight: '600',
  9. fontSize: getFontSize(13)
  10. },
  11. replyMessageText: {
  12. fontWeight: '400',
  13. fontSize: getFontSize(13)
  14. },
  15. unreadMessagesContainer: {
  16. padding: 8,
  17. backgroundColor: Colors.FILL_LIGHT,
  18. alignItems: 'center'
  19. },
  20. unreadMessagesText: {
  21. color: Colors.DARK_BLUE,
  22. fontWeight: '700',
  23. fontSize: getFontSize(12)
  24. },
  25. modalBackground: {
  26. flex: 1
  27. },
  28. mediaContainer: {
  29. borderRadius: 10,
  30. overflow: 'hidden',
  31. margin: 5
  32. },
  33. chatMedia: {
  34. width: 200,
  35. height: 200,
  36. borderRadius: 10
  37. },
  38. fullScreenMedia: {
  39. width: '90%',
  40. height: '80%'
  41. },
  42. replyMessageContainer: {
  43. borderLeftWidth: 2,
  44. borderRadius: 2,
  45. margin: 8,
  46. marginBottom: 0,
  47. padding: 4,
  48. paddingLeft: 6,
  49. gap: 2
  50. },
  51. composer: {
  52. backgroundColor: Colors.WHITE,
  53. borderRadius: 12,
  54. borderWidth: 0.5,
  55. borderColor: Colors.LIGHT_GRAY,
  56. paddingHorizontal: 10,
  57. fontSize: 16,
  58. marginBottom: 5
  59. },
  60. container: {
  61. flex: 1,
  62. backgroundColor: 'white'
  63. },
  64. imageContainer: {
  65. borderRadius: 10,
  66. overflow: 'hidden',
  67. margin: 6
  68. },
  69. chatImage: {
  70. width: 200,
  71. height: 200,
  72. borderRadius: 10
  73. },
  74. modalContainer: {
  75. flex: 1,
  76. backgroundColor: 'rgba(0, 0, 0, 0.9)',
  77. justifyContent: 'center',
  78. alignItems: 'center'
  79. },
  80. reactModalContainer: {
  81. justifyContent: 'flex-end',
  82. margin: 0
  83. },
  84. closeButton: {
  85. position: 'absolute',
  86. top: 40,
  87. right: 20
  88. },
  89. avatar: {
  90. width: 30,
  91. height: 30,
  92. borderRadius: 15,
  93. borderWidth: 1,
  94. borderColor: Colors.FILL_LIGHT
  95. },
  96. emptyChat: {
  97. height: '95%',
  98. alignItems: 'center',
  99. justifyContent: 'center',
  100. transform: Platform.OS === 'ios' ? [{ scaleY: -1 }] : [{ scaleY: -1 }, { scaleX: -1 }]
  101. },
  102. emptyChatText: {
  103. fontSize: getFontSize(14),
  104. fontWeight: '600',
  105. textAlign: 'center',
  106. color: Colors.DARK_BLUE
  107. },
  108. scrollToBottom: {
  109. position: 'absolute',
  110. bottom: -20,
  111. right: -20,
  112. backgroundColor: Colors.DARK_BLUE,
  113. borderRadius: 20,
  114. padding: 8
  115. },
  116. sendBtn: {
  117. flexDirection: 'row',
  118. height: '100%',
  119. alignItems: 'center',
  120. justifyContent: 'center',
  121. paddingHorizontal: 14
  122. },
  123. timeContainer: {
  124. flexDirection: 'row',
  125. gap: 4,
  126. alignItems: 'center',
  127. alignSelf: 'flex-end'
  128. },
  129. timeText: {
  130. color: Colors.LIGHT_GRAY,
  131. fontSize: getFontSize(10),
  132. fontWeight: '600',
  133. paddingLeft: 8,
  134. flexShrink: 0
  135. },
  136. bottomContainer: {
  137. flexDirection: 'row',
  138. alignItems: 'center',
  139. paddingHorizontal: 8,
  140. paddingBottom: 6,
  141. flexShrink: 1,
  142. flexGrow: 1,
  143. gap: 12
  144. },
  145. bottomCustomContainer: {
  146. flexDirection: 'row',
  147. alignItems: 'center',
  148. flexShrink: 0,
  149. borderRadius: 12,
  150. paddingHorizontal: 6,
  151. paddingVertical: 4,
  152. gap: 6
  153. },
  154. optionsContainer: {
  155. width: '100%',
  156. backgroundColor: Colors.FILL_LIGHT
  157. // borderTopWidth: 1,
  158. // borderTopColor: '#ccc'
  159. },
  160. optionRow: {
  161. flexDirection: 'row',
  162. justifyContent: 'space-between',
  163. paddingHorizontal: '5%',
  164. marginVertical: 20,
  165. flexWrap: 'wrap'
  166. },
  167. optionItem: {
  168. width: '30%',
  169. paddingVertical: 8,
  170. marginBottom: 12,
  171. alignItems: 'center'
  172. },
  173. optionLabel: {
  174. marginTop: 6,
  175. fontSize: 12,
  176. color: Colors.DARK_BLUE,
  177. fontWeight: '700'
  178. },
  179. fileContainer: {
  180. flexDirection: 'row',
  181. alignItems: 'center',
  182. padding: 6,
  183. borderRadius: 8,
  184. marginVertical: 6,
  185. marginHorizontal: 6
  186. },
  187. fileNameText: {
  188. marginLeft: 4,
  189. fontSize: 14,
  190. fontWeight: '600',
  191. maxWidth: 200
  192. },
  193. fileTypeText: {
  194. marginLeft: 6,
  195. fontSize: 12,
  196. color: Colors.LIGHT_GRAY
  197. }
  198. });