@plusscommunities/pluss-core-app 8.0.0 → 8.0.1-auth.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/dist/module/actions/FollowerActions.js +4 -4
  2. package/dist/module/actions/FollowerActions.js.map +1 -1
  3. package/dist/module/actions/MediaActions.js +1 -1
  4. package/dist/module/actions/MediaActions.js.map +1 -1
  5. package/dist/module/actions/ResidentActions.js +1 -1
  6. package/dist/module/actions/ResidentActions.js.map +1 -1
  7. package/dist/module/actions/UserActions.js +1 -1
  8. package/dist/module/actions/UserActions.js.map +1 -1
  9. package/dist/module/actions/UserSettingsActions.js +1 -1
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -1
  11. package/dist/module/actions/index.js +5 -5
  12. package/dist/module/actions/index.js.map +1 -1
  13. package/dist/module/actions/types.js +16 -16
  14. package/dist/module/actions/types.js.map +1 -1
  15. package/dist/module/apis/analyticsActions.js +5 -5
  16. package/dist/module/apis/analyticsActions.js.map +1 -1
  17. package/dist/module/apis/contactActions.js +6 -6
  18. package/dist/module/apis/contactActions.js.map +1 -1
  19. package/dist/module/apis/eventActions.js +28 -28
  20. package/dist/module/apis/eventActions.js.map +1 -1
  21. package/dist/module/apis/fileActions.js +15 -15
  22. package/dist/module/apis/fileActions.js.map +1 -1
  23. package/dist/module/apis/followerActions.js +8 -8
  24. package/dist/module/apis/followerActions.js.map +1 -1
  25. package/dist/module/apis/index.js +12 -12
  26. package/dist/module/apis/index.js.map +1 -1
  27. package/dist/module/apis/notificationActions.js +17 -17
  28. package/dist/module/apis/notificationActions.js.map +1 -1
  29. package/dist/module/apis/profileActions.js +4 -4
  30. package/dist/module/apis/profileActions.js.map +1 -1
  31. package/dist/module/apis/reactionActions.js +15 -15
  32. package/dist/module/apis/reactionActions.js.map +1 -1
  33. package/dist/module/apis/settingActions.js +6 -6
  34. package/dist/module/apis/settingActions.js.map +1 -1
  35. package/dist/module/apis/stringActions.js +8 -8
  36. package/dist/module/apis/stringActions.js.map +1 -1
  37. package/dist/module/apis/typeActions.js +4 -4
  38. package/dist/module/apis/typeActions.js.map +1 -1
  39. package/dist/module/apis/userActions.js +8 -8
  40. package/dist/module/apis/userActions.js.map +1 -1
  41. package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  42. package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  43. package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  44. package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  45. package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  46. package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  47. package/dist/module/colours.js +26 -29
  48. package/dist/module/colours.js.map +1 -1
  49. package/dist/module/components/AddButton.js +8 -8
  50. package/dist/module/components/AddButton.js.map +1 -1
  51. package/dist/module/components/AddToCalendarButton.js +30 -29
  52. package/dist/module/components/AddToCalendarButton.js.map +1 -1
  53. package/dist/module/components/Attachment.js +10 -9
  54. package/dist/module/components/Attachment.js.map +1 -1
  55. package/dist/module/components/AudienceSelectorLauncher.js +11 -11
  56. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
  57. package/dist/module/components/AudienceSelectorPage.js +45 -44
  58. package/dist/module/components/AudienceSelectorPage.js.map +1 -1
  59. package/dist/module/components/AutoOffsetImage.js +13 -13
  60. package/dist/module/components/AutoOffsetImage.js.map +1 -1
  61. package/dist/module/components/BackButton.js +10 -10
  62. package/dist/module/components/BackButton.js.map +1 -1
  63. package/dist/module/components/CalendarPopup.js +21 -21
  64. package/dist/module/components/CalendarPopup.js.map +1 -1
  65. package/dist/module/components/CategoryTabs.js +30 -29
  66. package/dist/module/components/CategoryTabs.js.map +1 -1
  67. package/dist/module/components/CommentReply.js +43 -37
  68. package/dist/module/components/CommentReply.js.map +1 -1
  69. package/dist/module/components/CommentSection.js +74 -74
  70. package/dist/module/components/CommentSection.js.map +1 -1
  71. package/dist/module/components/ConfirmPopup.js +21 -20
  72. package/dist/module/components/ConfirmPopup.js.map +1 -1
  73. package/dist/module/components/ConfirmationPopup.js +11 -11
  74. package/dist/module/components/ConfirmationPopup.js.map +1 -1
  75. package/dist/module/components/DocumentUploader.js +50 -50
  76. package/dist/module/components/DocumentUploader.js.map +1 -1
  77. package/dist/module/components/DropDownItem.js +14 -13
  78. package/dist/module/components/DropDownItem.js.map +1 -1
  79. package/dist/module/components/DropDownMenu.js +5 -5
  80. package/dist/module/components/DropDownMenu.js.map +1 -1
  81. package/dist/module/components/EmptyStateMain.js +10 -9
  82. package/dist/module/components/EmptyStateMain.js.map +1 -1
  83. package/dist/module/components/EmptyStateWidget.js +7 -6
  84. package/dist/module/components/EmptyStateWidget.js.map +1 -1
  85. package/dist/module/components/FontScaleButton.js +5 -4
  86. package/dist/module/components/FontScaleButton.js.map +1 -1
  87. package/dist/module/components/FontScalePopup.js +11 -10
  88. package/dist/module/components/FontScalePopup.js.map +1 -1
  89. package/dist/module/components/Forbidden.js +13 -13
  90. package/dist/module/components/Forbidden.js.map +1 -1
  91. package/dist/module/components/FormCard.js +4 -4
  92. package/dist/module/components/FormCard.js.map +1 -1
  93. package/dist/module/components/FormCardSection.js +20 -18
  94. package/dist/module/components/FormCardSection.js.map +1 -1
  95. package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
  96. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
  97. package/dist/module/components/FormattedText.js +18 -16
  98. package/dist/module/components/FormattedText.js.map +1 -1
  99. package/dist/module/components/GenericInput.js +24 -21
  100. package/dist/module/components/GenericInput.js.map +1 -1
  101. package/dist/module/components/GenericInputSection.js +27 -26
  102. package/dist/module/components/GenericInputSection.js.map +1 -1
  103. package/dist/module/components/Header.js +70 -69
  104. package/dist/module/components/Header.js.map +1 -1
  105. package/dist/module/components/Icon.js +109 -0
  106. package/dist/module/components/Icon.js.map +1 -0
  107. package/dist/module/components/ImagePopup.js +211 -73
  108. package/dist/module/components/ImagePopup.js.map +1 -1
  109. package/dist/module/components/ImageUploadProgress.js +10 -9
  110. package/dist/module/components/ImageUploadProgress.js.map +1 -1
  111. package/dist/module/components/ImageUploader.js +116 -96
  112. package/dist/module/components/ImageUploader.js.map +1 -1
  113. package/dist/module/components/InlineButton.js +9 -8
  114. package/dist/module/components/InlineButton.js.map +1 -1
  115. package/dist/module/components/Input.js +28 -26
  116. package/dist/module/components/Input.js.map +1 -1
  117. package/dist/module/components/LoadingCircles.js +20 -20
  118. package/dist/module/components/LoadingCircles.js.map +1 -1
  119. package/dist/module/components/LoadingIndicator.js +11 -11
  120. package/dist/module/components/LoadingIndicator.js.map +1 -1
  121. package/dist/module/components/LoadingStateWidget.js +5 -5
  122. package/dist/module/components/LoadingStateWidget.js.map +1 -1
  123. package/dist/module/components/MediaPlayer.js +31 -31
  124. package/dist/module/components/MediaPlayer.js.map +1 -1
  125. package/dist/module/components/MiddlePopup.js +17 -11
  126. package/dist/module/components/MiddlePopup.js.map +1 -1
  127. package/dist/module/components/PDFPopup.js +52 -39
  128. package/dist/module/components/PDFPopup.js.map +1 -1
  129. package/dist/module/components/PlussChat.js +168 -149
  130. package/dist/module/components/PlussChat.js.map +1 -1
  131. package/dist/module/components/PlussChatMessage.js +42 -42
  132. package/dist/module/components/PlussChatMessage.js.map +1 -1
  133. package/dist/module/components/PlussChatTime.js +18 -17
  134. package/dist/module/components/PlussChatTime.js.map +1 -1
  135. package/dist/module/components/Popup.js +20 -19
  136. package/dist/module/components/Popup.js.map +1 -1
  137. package/dist/module/components/PopupMenu.js +15 -14
  138. package/dist/module/components/PopupMenu.js.map +1 -1
  139. package/dist/module/components/PositionedImage.js +20 -20
  140. package/dist/module/components/PositionedImage.js.map +1 -1
  141. package/dist/module/components/ProfilePic.js +10 -10
  142. package/dist/module/components/ProfilePic.js.map +1 -1
  143. package/dist/module/components/RadioButton.js +10 -9
  144. package/dist/module/components/RadioButton.js.map +1 -1
  145. package/dist/module/components/Reaction.js +18 -17
  146. package/dist/module/components/Reaction.js.map +1 -1
  147. package/dist/module/components/Reactions.js +7 -7
  148. package/dist/module/components/Reactions.js.map +1 -1
  149. package/dist/module/components/SharingTools.js +78 -43
  150. package/dist/module/components/SharingTools.js.map +1 -1
  151. package/dist/module/components/Spinner.js +5 -5
  152. package/dist/module/components/Spinner.js.map +1 -1
  153. package/dist/module/components/StickyFooter.js +6 -6
  154. package/dist/module/components/StickyFooter.js.map +1 -1
  155. package/dist/module/components/Text.js +57 -0
  156. package/dist/module/components/Text.js.map +1 -0
  157. package/dist/module/components/TickIcon.js +6 -6
  158. package/dist/module/components/TickIcon.js.map +1 -1
  159. package/dist/module/components/Toggle.js +10 -9
  160. package/dist/module/components/Toggle.js.map +1 -1
  161. package/dist/module/components/TouchableSearchBar.js +18 -17
  162. package/dist/module/components/TouchableSearchBar.js.map +1 -1
  163. package/dist/module/components/UserListPopup.js +20 -19
  164. package/dist/module/components/UserListPopup.js.map +1 -1
  165. package/dist/module/components/UserListing.js +41 -40
  166. package/dist/module/components/UserListing.js.map +1 -1
  167. package/dist/module/components/VideoPopup.js +20 -20
  168. package/dist/module/components/VideoPopup.js.map +1 -1
  169. package/dist/module/components/WarningPopup.js +21 -20
  170. package/dist/module/components/WarningPopup.js.map +1 -1
  171. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
  172. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
  173. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
  174. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
  175. package/dist/module/components/index.js +59 -58
  176. package/dist/module/components/index.js.map +1 -1
  177. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +94 -64
  178. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
  179. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
  180. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
  181. package/dist/module/config.js +15 -10
  182. package/dist/module/config.js.map +1 -1
  183. package/dist/module/constants.js +3 -4
  184. package/dist/module/constants.js.map +1 -1
  185. package/dist/module/helper.js +83 -82
  186. package/dist/module/helper.js.map +1 -1
  187. package/dist/module/index.js +12 -12
  188. package/dist/module/index.js.map +1 -1
  189. package/dist/module/js/images/detectFaces.js +11 -10
  190. package/dist/module/js/images/detectFaces.js.map +1 -1
  191. package/dist/module/js/images/findLandmarkRange.js +8 -8
  192. package/dist/module/js/images/findLandmarkRange.js.map +1 -1
  193. package/dist/module/js/images/getScaledOffset.js.map +1 -1
  194. package/dist/module/js/site/getSiteLevelFromState.js +2 -2
  195. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
  196. package/dist/module/js/site/isTVEnabled.js +2 -2
  197. package/dist/module/js/site/isTVEnabled.js.map +1 -1
  198. package/dist/module/session.js +6 -6
  199. package/dist/module/session.js.map +1 -1
  200. package/dist/module/styles.js +17 -17
  201. package/dist/module/styles.js.map +1 -1
  202. package/dist/module/withNavigationFocus.js +30 -0
  203. package/dist/module/withNavigationFocus.js.map +1 -0
  204. package/package.json +71 -68
  205. package/src/actions/FollowerActions.js +36 -32
  206. package/src/actions/MediaActions.js +25 -20
  207. package/src/actions/ResidentActions.js +26 -21
  208. package/src/actions/UserActions.js +22 -22
  209. package/src/actions/UserSettingsActions.js +11 -11
  210. package/src/actions/index.js +5 -5
  211. package/src/actions/types.js +16 -16
  212. package/src/apis/analyticsActions.js +17 -17
  213. package/src/apis/contactActions.js +20 -20
  214. package/src/apis/eventActions.js +153 -144
  215. package/src/apis/fileActions.js +96 -86
  216. package/src/apis/followerActions.js +29 -29
  217. package/src/apis/index.js +12 -12
  218. package/src/apis/notificationActions.js +44 -44
  219. package/src/apis/profileActions.js +8 -8
  220. package/src/apis/reactionActions.js +81 -73
  221. package/src/apis/settingActions.js +15 -15
  222. package/src/apis/stringActions.js +29 -25
  223. package/src/apis/typeActions.js +10 -10
  224. package/src/apis/userActions.js +93 -93
  225. package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  226. package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  227. package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  228. package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  229. package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  230. package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  231. package/src/colours.js +116 -96
  232. package/src/components/AddButton.js +32 -27
  233. package/src/components/AddToCalendarButton.js +236 -202
  234. package/src/components/Attachment.js +59 -36
  235. package/src/components/AudienceSelectorLauncher.js +52 -48
  236. package/src/components/AudienceSelectorPage.js +353 -311
  237. package/src/components/AutoOffsetImage.js +237 -196
  238. package/src/components/BackButton.js +57 -41
  239. package/src/components/CalendarPopup.js +127 -97
  240. package/src/components/CategoryTabs.js +208 -163
  241. package/src/components/CommentReply.js +370 -309
  242. package/src/components/CommentSection.js +974 -781
  243. package/src/components/ConfirmPopup.js +141 -110
  244. package/src/components/ConfirmationPopup.js +80 -69
  245. package/src/components/DocumentUploader.js +245 -215
  246. package/src/components/DropDownItem.js +70 -60
  247. package/src/components/DropDownMenu.js +31 -27
  248. package/src/components/EmptyStateMain.js +51 -44
  249. package/src/components/EmptyStateWidget.js +47 -38
  250. package/src/components/FontScaleButton.js +29 -25
  251. package/src/components/FontScalePopup.js +67 -56
  252. package/src/components/Forbidden.js +48 -46
  253. package/src/components/FormCard.js +21 -17
  254. package/src/components/FormCardSection.js +284 -233
  255. package/src/components/FormCardSectionOptionLauncher.js +72 -46
  256. package/src/components/FormattedText.js +128 -111
  257. package/src/components/GenericInput.js +168 -136
  258. package/src/components/GenericInputSection.js +209 -161
  259. package/src/components/Header.js +620 -474
  260. package/src/components/Icon.js +119 -0
  261. package/src/components/ImagePopup.js +425 -221
  262. package/src/components/ImageUploadProgress.js +49 -41
  263. package/src/components/ImageUploader.js +968 -797
  264. package/src/components/InlineButton.js +79 -69
  265. package/src/components/Input.js +190 -156
  266. package/src/components/LoadingCircles.js +233 -233
  267. package/src/components/LoadingIndicator.js +87 -76
  268. package/src/components/LoadingStateWidget.js +47 -37
  269. package/src/components/MediaPlayer.js +416 -387
  270. package/src/components/MiddlePopup.js +62 -33
  271. package/src/components/PDFPopup.js +212 -159
  272. package/src/components/PlussChat.js +1224 -1025
  273. package/src/components/PlussChatMessage.js +329 -298
  274. package/src/components/PlussChatTime.js +57 -53
  275. package/src/components/Popup.js +138 -116
  276. package/src/components/PopupMenu.js +140 -110
  277. package/src/components/PositionedImage.js +281 -237
  278. package/src/components/ProfilePic.js +122 -113
  279. package/src/components/RadioButton.js +76 -52
  280. package/src/components/Reaction.js +134 -96
  281. package/src/components/Reactions.js +65 -63
  282. package/src/components/SharingTools.js +185 -134
  283. package/src/components/Spinner.js +13 -13
  284. package/src/components/StickyFooter.js +36 -26
  285. package/src/components/Text.js +62 -0
  286. package/src/components/TickIcon.js +20 -20
  287. package/src/components/Toggle.js +74 -73
  288. package/src/components/TouchableSearchBar.js +68 -50
  289. package/src/components/UserListPopup.js +161 -124
  290. package/src/components/UserListing.js +273 -238
  291. package/src/components/VideoPopup.js +110 -96
  292. package/src/components/WarningPopup.js +92 -71
  293. package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
  294. package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
  295. package/src/components/index.js +59 -58
  296. package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +444 -359
  297. package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
  298. package/src/config.js +26 -21
  299. package/src/constants.js +8 -10
  300. package/src/helper.js +469 -438
  301. package/src/index.js +24 -12
  302. package/src/js/images/detectFaces.js +28 -21
  303. package/src/js/images/findLandmarkRange.js +97 -90
  304. package/src/js/images/getScaledOffset.js +80 -75
  305. package/src/js/site/getSiteLevelFromState.js +26 -26
  306. package/src/js/site/isTVEnabled.js +10 -10
  307. package/src/session.js +32 -32
  308. package/src/styles.js +61 -61
  309. package/src/withNavigationFocus.js +28 -0
  310. package/dist/module/components/TextStyle.js +0 -45
  311. package/dist/module/components/TextStyle.js.map +0 -1
  312. package/dist/module/fonts/index.js +0 -2
  313. package/dist/module/fonts/index.js.map +0 -1
  314. package/dist/module/fonts/pluss60-icons.js +0 -5
  315. package/dist/module/fonts/pluss60-icons.js.map +0 -1
  316. package/dist/module/fonts/pluss60-icons.json +0 -1097
  317. package/src/components/TextStyle.js +0 -48
  318. package/src/fonts/index.js +0 -1
  319. package/src/fonts/pluss60-icons.js +0 -7
  320. package/src/fonts/pluss60-icons.json +0 -1097
@@ -2,29 +2,29 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
2
2
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
3
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
4
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
- import React, { Component } from 'react';
6
- import { View, Image, ImageBackground, TouchableOpacity, Text, KeyboardAvoidingView, Platform, ScrollView, Alert } from 'react-native';
7
- import { GiftedChat, Bubble, MessageText, Send, InputToolbar, Composer } from 'react-native-gifted-chat';
8
- import { connect } from 'react-redux';
9
- import _ from 'lodash';
10
- import moment from 'moment';
11
- import { Icon } from '@rneui/themed';
12
- import { getBottomSpace } from 'react-native-iphone-x-helper';
13
- import { Spinner } from './Spinner';
14
- import { ProfilePic } from './ProfilePic';
15
- import PlussChatTime from './PlussChatTime';
16
- import { PDFPopup } from './PDFPopup';
17
- import { Attachment } from './Attachment';
18
- import PlussChatMessage from './PlussChatMessage';
19
- import { TextStyle } from './TextStyle';
20
- import { ConfirmPopup } from './ConfirmPopup';
21
- import { TEXT_DARK, LINEGREY, TEXT_DARKEST, getMainBrandingColourFromState, getLightBrandingColourFromState, BG_GREY, TEXT_BLUEGREY } from '../colours';
22
- import { getEnabledTabsFromState, get1400, getThumb300, imageExists, isVideo, getImageSource, getFileName } from '../helper';
23
- import Config, { Services } from '../config';
24
- import ImageUploader from './ImageUploader';
25
- import ImageUploadProgress from './ImageUploadProgress';
26
- import { ImagePopup } from './ImagePopup';
27
- import { VideoPopup } from './VideoPopup';
5
+ import React, { Component } from "react";
6
+ import { View, Image, ImageBackground, TouchableOpacity, KeyboardAvoidingView, Platform, ScrollView, Alert, TextInput } from "react-native";
7
+ import { GiftedChat, Bubble, MessageText, Send, InputToolbar } from "react-native-gifted-chat";
8
+ import { connect } from "react-redux";
9
+ import _ from "lodash";
10
+ import moment from "moment";
11
+ import { Icon } from "@rneui/themed";
12
+ import { withSafeAreaInsets } from "react-native-safe-area-context";
13
+ import { Spinner } from "./Spinner";
14
+ import { ProfilePic } from "./ProfilePic";
15
+ import PlussChatTime from "./PlussChatTime";
16
+ import { PDFPopup } from "./PDFPopup";
17
+ import { Attachment } from "./Attachment";
18
+ import PlussChatMessage from "./PlussChatMessage";
19
+ import { Text } from ".";
20
+ import { ConfirmPopup } from "./ConfirmPopup";
21
+ import { TEXT_DARK, LINEGREY, TEXT_DARKEST, getMainBrandingColourFromState, getLightBrandingColourFromState, BG_GREY, TEXT_BLUEGREY } from "../colours";
22
+ import { getEnabledTabsFromState, get1400, getThumb300, imageExists, isVideo, getImageSource, getFileName } from "../helper";
23
+ import Config, { Services } from "../config";
24
+ import ImageUploader from "./ImageUploader";
25
+ import ImageUploadProgress from "./ImageUploadProgress";
26
+ import { ImagePopup } from "./ImagePopup";
27
+ import { VideoPopup } from "./VideoPopup";
28
28
  const IMAGE_SIZE_SMALL = 55;
29
29
  const IMAGE_SIZE_LARGE = 110;
30
30
  const IMAGES_PER_ROW = 4;
@@ -33,21 +33,22 @@ const IMAGE_PREVIEW_AREA_HEIGHT = 105;
33
33
  const IMAGE_PREVIEW_SIZE = IMAGE_PREVIEW_AREA_HEIGHT - 25;
34
34
  class PlussChat extends Component {
35
35
  constructor(props) {
36
+ var _this$props$insets;
36
37
  super(props);
37
38
  _defineProperty(this, "onPressEvent", event => {
38
- Services.navigation.navigate('eventDetail', {
39
+ Services.navigation.navigate("eventDetail", {
39
40
  event
40
41
  });
41
42
  });
42
43
  _defineProperty(this, "onPressAttachment", attachment => {
43
44
  switch (attachment.Type) {
44
- case 'Event':
45
- Services.navigation.navigate('eventDetail', {
45
+ case "Event":
46
+ Services.navigation.navigate("eventDetail", {
46
47
  event: attachment
47
48
  });
48
49
  break;
49
- case 'Place':
50
- Services.navigation.navigate('placeDetail', {
50
+ case "Place":
51
+ Services.navigation.navigate("placeDetail", {
51
52
  place: attachment
52
53
  });
53
54
  break;
@@ -117,7 +118,7 @@ class PlussChat extends Component {
117
118
  _defineProperty(this, "onUploadStarted", (uploadUri, imageUri) => {
118
119
  const imagesToUpload = [...this.state.imagesToUpload, {
119
120
  uploading: true,
120
- uploadProgress: '0%',
121
+ uploadProgress: "0%",
121
122
  uploadUri,
122
123
  imageUri,
123
124
  allowRetry: true
@@ -143,7 +144,7 @@ class PlussChat extends Component {
143
144
  const imagesToUpload = [...this.state.imagesToUpload];
144
145
  imagesToUpload.map(img => {
145
146
  if (img.uploadUri === uploadUri && img.uploading) {
146
- img.url = uri.replace('/general/', '/general1400/');
147
+ img.url = uri.replace("/general/", "/general1400/");
147
148
  img.thumbNailExists = false;
148
149
  img.thumbNailUrl = getThumb300(img.url);
149
150
  img.allowRetry = true;
@@ -158,7 +159,7 @@ class PlussChat extends Component {
158
159
  imagesToUpload.map(img => {
159
160
  if (img.uploadUri === uploadUri) {
160
161
  img.uploading = true; // Requried for retry
161
- img.uploadProgress = '';
162
+ img.uploadProgress = "";
162
163
  img.allowRetry = true;
163
164
  }
164
165
  });
@@ -229,7 +230,7 @@ class PlussChat extends Component {
229
230
  });
230
231
  } catch (error) {
231
232
  // Handle error gracefully if parent handler fails
232
- console.log('onConfirmDeleteMessage error', error);
233
+ console.log("onConfirmDeleteMessage error", error);
233
234
  // Error is already handled by parent component
234
235
  this.setState({
235
236
  messageToDelete: null
@@ -243,13 +244,14 @@ class PlussChat extends Component {
243
244
  });
244
245
  });
245
246
  _defineProperty(this, "toggleFullscreenVideo", url => {
246
- if (typeof url !== 'string') url = '';
247
+ if (typeof url !== "string") url = "";
247
248
  this.setState({
248
249
  showFullscreenVideo: url.length > 0,
249
250
  currentVideoUrl: url
250
251
  });
251
252
  });
252
- const isSingleTab = this.props.tabCount === 1 && getBottomSpace() > 0;
253
+ const bottomInset = ((_this$props$insets = this.props.insets) === null || _this$props$insets === void 0 ? void 0 : _this$props$insets.bottom) ?? 0;
254
+ const isSingleTab = this.props.tabCount === 1 && bottomInset > 0;
253
255
  this.MIN_COMPOSER_HEIGHT = Platform.select({
254
256
  ios: isSingleTab ? 42 : 33,
255
257
  android: 41
@@ -266,9 +268,10 @@ class PlussChat extends Component {
266
268
  imagePopupOpen: false,
267
269
  imagesToUpload: [],
268
270
  showFullscreenVideo: false,
269
- currentVideoUrl: '',
271
+ currentVideoUrl: "",
270
272
  showDeleteMessageConfirm: false,
271
- messageToDelete: null
273
+ messageToDelete: null,
274
+ composerHeight: this.MIN_COMPOSER_HEIGHT
272
275
  };
273
276
  this.checkThumb = null;
274
277
  }
@@ -276,14 +279,18 @@ class PlussChat extends Component {
276
279
  this.updateMessages(this.props);
277
280
  }
278
281
  UNSAFE_componentWillReceiveProps(nextProps) {
279
- this.updateMessages(nextProps);
282
+ // Only update if messages actually changed
283
+ if (nextProps.messages !== this.props.messages) {
284
+ this.updateMessages(nextProps);
285
+ }
280
286
  }
281
287
  updateMessages(props) {
282
- const newState = {};
283
- if (!_.isUndefined(props.messages)) {
284
- newState.messages = props.messages;
288
+ // Only update if messages actually changed
289
+ if (!_.isUndefined(props.messages) && !_.isEqual(props.messages, this.state.messages)) {
290
+ this.setState({
291
+ messages: props.messages
292
+ });
285
293
  }
286
- this.setState(newState);
287
294
  }
288
295
 
289
296
  /***
@@ -312,7 +319,7 @@ class PlussChat extends Component {
312
319
  messages[0].image = this.state.imagesToUpload.map(image => image.url);
313
320
  }
314
321
  if (_.isEmpty(messages[0].text)) {
315
- messages[0].text = '';
322
+ messages[0].text = "";
316
323
  }
317
324
  if (!messages[0].text && !messages[0].image) return;
318
325
  if (this.state.replyingTo) {
@@ -392,13 +399,13 @@ class PlussChat extends Component {
392
399
  ...messageTextProps,
393
400
  currentMessage: {
394
401
  ...messageTextProps.currentMessage,
395
- text: '[Message deleted]'
402
+ text: "[Message deleted]"
396
403
  }
397
404
  } : messageTextProps;
398
405
  return /*#__PURE__*/React.createElement(MessageText, _extends({}, props, {
399
406
  textStyle: {
400
407
  left: {
401
- fontFamily: 'sf-regular',
408
+ fontFamily: "sf-regular",
402
409
  fontSize: 16,
403
410
  color: TEXT_DARKEST,
404
411
  marginTop: 10,
@@ -407,7 +414,7 @@ class PlussChat extends Component {
407
414
  marginRight: 15
408
415
  },
409
416
  right: {
410
- fontFamily: 'sf-regular',
417
+ fontFamily: "sf-regular",
411
418
  fontSize: 16,
412
419
  color: this.props.colourBrandingMain,
413
420
  marginTop: 10,
@@ -423,6 +430,9 @@ class PlussChat extends Component {
423
430
  right: {
424
431
  color: this.props.colourBrandingMain
425
432
  }
433
+ },
434
+ textProps: {
435
+ selectable: true
426
436
  }
427
437
  }));
428
438
  }
@@ -432,7 +442,7 @@ class PlussChat extends Component {
432
442
  renderDay(dayProps) {
433
443
  return /*#__PURE__*/React.createElement(PlussChatTime, _extends({}, dayProps, {
434
444
  textStyle: {
435
- fontFamily: 'sf-semibold',
445
+ fontFamily: "sf-semibold",
436
446
  color: TEXT_DARK,
437
447
  fontSize: 12
438
448
  }
@@ -447,7 +457,7 @@ class PlussChat extends Component {
447
457
  return null;
448
458
  }
449
459
  if (currentMessage.image) {
450
- const images = typeof currentMessage.image === 'string' ? [currentMessage.image] : currentMessage.image;
460
+ const images = typeof currentMessage.image === "string" ? [currentMessage.image] : currentMessage.image;
451
461
  const containerWidth = (() => {
452
462
  if (images.length === 0) return 0;
453
463
  if (images.length === 1) return IMAGE_SIZE_LARGE;
@@ -521,7 +531,7 @@ class PlussChat extends Component {
521
531
  style: [styles.eventDate, styles.eventInfoAlign[position], {
522
532
  color: this.props.colourBrandingMain
523
533
  }]
524
- }, moment.utc(currentMessage.event.StartTime).local().format('ddd D MMM')))));
534
+ }, moment.utc(currentMessage.event.StartTime).local().format("ddd D MMM")))));
525
535
  }
526
536
  if (currentMessage.attachment) {
527
537
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
@@ -544,40 +554,44 @@ class PlussChat extends Component {
544
554
  style: [styles.eventDate, styles.eventInfoAlign[position], {
545
555
  color: this.props.colourBrandingMain
546
556
  }]
547
- }, moment.utc(currentMessage.attachment.StartTime).local().format('ddd D MMM')))));
557
+ }, moment.utc(currentMessage.attachment.StartTime).local().format("ddd D MMM")))));
548
558
  }
549
559
  return null;
550
560
  }
551
561
  renderSend(props) {
562
+ const buttonTopOffset = this.state.replyingTo ? 46 : 4;
563
+ const showSendButton = !_.isEmpty(props.text) || this.hasImagesReady(props.imagesToUpload);
552
564
  return /*#__PURE__*/React.createElement(View, {
553
- style: [{
554
- position: 'absolute',
555
- top: 0,
556
- right: 0
557
- }, !!this.state.replyingTo && {
558
- marginTop: 38
559
- }]
560
- }, (!_.isEmpty(props.text) || this.hasImagesReady(props.imagesToUpload)) && /*#__PURE__*/React.createElement(Send, _extends({}, props, {
561
- alwaysShowSend: true,
562
- containerStyle: [styles.sendContainer, {
565
+ style: {
566
+ position: "absolute",
567
+ top: buttonTopOffset,
568
+ right: 8,
569
+ flexDirection: "row",
570
+ alignItems: "center"
571
+ }
572
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
573
+ onPress: this.showUploadMenu.bind(this),
574
+ style: [styles.sendContainer, {
575
+ right: _.isEmpty(props.text) && !this.hasImagesReady(props.imagesToUpload) ? 0 : this.MIN_COMPOSER_HEIGHT,
563
576
  width: this.MIN_COMPOSER_HEIGHT,
564
577
  height: this.MIN_COMPOSER_HEIGHT
565
578
  }]
566
- }), /*#__PURE__*/React.createElement(Icon, {
567
- name: 'paper-plane',
579
+ }, /*#__PURE__*/React.createElement(Icon, {
580
+ name: "picture-o",
568
581
  type: "font-awesome",
569
582
  iconStyle: [styles.send, {
570
583
  width: this.MIN_COMPOSER_HEIGHT
571
584
  }]
572
- })), /*#__PURE__*/React.createElement(TouchableOpacity, {
573
- onPress: this.showUploadMenu.bind(this),
574
- style: [styles.sendContainer, {
575
- right: _.isEmpty(props.text) && !this.hasImagesReady(props.imagesToUpload) ? 0 : 8 + this.MIN_COMPOSER_HEIGHT,
585
+ })), showSendButton && /*#__PURE__*/React.createElement(Send, _extends({}, props, {
586
+ alwaysShowSend: true,
587
+ onSend: props.onSend,
588
+ text: props.text || " ",
589
+ containerStyle: [styles.sendContainer, {
576
590
  width: this.MIN_COMPOSER_HEIGHT,
577
591
  height: this.MIN_COMPOSER_HEIGHT
578
592
  }]
579
- }, /*#__PURE__*/React.createElement(Icon, {
580
- name: 'picture-o',
593
+ }), /*#__PURE__*/React.createElement(Icon, {
594
+ name: "paper-plane",
581
595
  type: "font-awesome",
582
596
  iconStyle: [styles.send, {
583
597
  width: this.MIN_COMPOSER_HEIGHT
@@ -668,11 +682,11 @@ class PlussChat extends Component {
668
682
  return /*#__PURE__*/React.createElement(View, {
669
683
  style: {
670
684
  marginTop: 15,
671
- justifyContent: 'center',
672
- alignContent: 'center'
685
+ justifyContent: "center",
686
+ alignContent: "center"
673
687
  }
674
688
  }, /*#__PURE__*/React.createElement(Spinner, {
675
- size: 'small',
689
+ size: "small",
676
690
  color: this.props.colourBrandingMain
677
691
  }));
678
692
  }
@@ -689,12 +703,14 @@ class PlussChat extends Component {
689
703
  renderComposer(props) {
690
704
  var _this$state$replyingT, _this$state$replyingT2;
691
705
  return /*#__PURE__*/React.createElement(View, {
692
- style: styles.composerContainer
706
+ style: {
707
+ width: "100%"
708
+ }
693
709
  }, this.state.replyingTo && /*#__PURE__*/React.createElement(View, {
694
710
  style: styles.replyingTo
695
- }, /*#__PURE__*/React.createElement(TextStyle, {
711
+ }, /*#__PURE__*/React.createElement(Text, {
696
712
  type: "body"
697
- }, "Replying to ", _.isEmpty((_this$state$replyingT = this.state.replyingTo) === null || _this$state$replyingT === void 0 || (_this$state$replyingT = _this$state$replyingT.user) === null || _this$state$replyingT === void 0 ? void 0 : _this$state$replyingT.name) ? 'message' : (_this$state$replyingT2 = this.state.replyingTo) === null || _this$state$replyingT2 === void 0 || (_this$state$replyingT2 = _this$state$replyingT2.user) === null || _this$state$replyingT2 === void 0 ? void 0 : _this$state$replyingT2.name), /*#__PURE__*/React.createElement(TouchableOpacity, {
713
+ }, "Replying to", " ", _.isEmpty((_this$state$replyingT = this.state.replyingTo) === null || _this$state$replyingT === void 0 || (_this$state$replyingT = _this$state$replyingT.user) === null || _this$state$replyingT === void 0 ? void 0 : _this$state$replyingT.name) ? "message" : (_this$state$replyingT2 = this.state.replyingTo) === null || _this$state$replyingT2 === void 0 || (_this$state$replyingT2 = _this$state$replyingT2.user) === null || _this$state$replyingT2 === void 0 ? void 0 : _this$state$replyingT2.name), /*#__PURE__*/React.createElement(TouchableOpacity, {
698
714
  style: styles.replyingRemoveButton,
699
715
  onPress: () => this.onReply(null),
700
716
  hitSlop: {
@@ -712,43 +728,52 @@ class PlussChat extends Component {
712
728
  type: "font-awesome",
713
729
  iconStyle: styles.replyingRemoveIcon
714
730
  })))), /*#__PURE__*/React.createElement(View, {
715
- style: styles.composerInputWrapper
731
+ style: {
732
+ flexDirection: "row",
733
+ alignItems: "flex-end",
734
+ width: "100%",
735
+ paddingBottom: 8
736
+ }
716
737
  }, /*#__PURE__*/React.createElement(View, {
717
738
  style: [styles.input, {
718
- //height: props.composerHeight + 10,
719
- //borderRadius: (this.MIN_COMPOSER_HEIGHT + 10) / 2,
720
- marginRight: _.isEmpty(props.text) && !this.hasImagesReady(props.imagesToUpload) ? 8 + this.MIN_COMPOSER_HEIGHT : 2 * (this.MIN_COMPOSER_HEIGHT + 8),
721
- justifyContent: 'center'
722
- }, Platform.OS === 'ios' && {
723
- height: props.composerHeight + 10
739
+ flex: 1,
740
+ marginRight: _.isEmpty(props.text) && !this.hasImagesReady(props.imagesToUpload) ? 16 + this.MIN_COMPOSER_HEIGHT : 2 * (this.MIN_COMPOSER_HEIGHT + 8),
741
+ paddingHorizontal: 12,
742
+ paddingVertical: Platform.select({
743
+ ios: 8,
744
+ android: 6
745
+ })
724
746
  }]
725
- }, /*#__PURE__*/React.createElement(Composer, _extends({}, props, {
726
- //composerHeight={props.composerHeight}
747
+ }, /*#__PURE__*/React.createElement(TextInput, {
748
+ maxFontSizeMultiplier: 1.2,
727
749
  placeholder: "Type a message...",
728
- textInputStyle: styles.inputText,
729
- textInputProps: {
730
- onFocus: this.onFocusInput.bind(this),
731
- onBlur: this.onBlurInput.bind(this)
732
- }
733
- })))));
750
+ multiline: true,
751
+ value: props.text,
752
+ onChangeText: props.onTextChanged,
753
+ style: [styles.inputText, {
754
+ lineHeight: 20,
755
+ minHeight: this.MIN_COMPOSER_HEIGHT - 16,
756
+ maxHeight: 100
757
+ }],
758
+ onFocus: this.onFocusInput.bind(this),
759
+ onBlur: this.onBlurInput.bind(this),
760
+ placeholderTextColor: "#999"
761
+ }))));
734
762
  }
735
763
 
736
764
  /***
737
765
  * Main Render
738
766
  */
739
767
  renderChat() {
740
- const {
741
- tabCount,
742
- noTab
743
- } = this.props;
744
- const iosBottomOffset = (tabCount === 1 || noTab ? -10 : 52) + getBottomSpace();
745
- const minInputToolbarHeight = this.MIN_COMPOSER_HEIGHT + 16 + (this.state.replyingTo ? 30 : 0) + (this.hasImagesAttached() ? IMAGE_PREVIEW_AREA_HEIGHT : 0);
768
+ const minInputToolbarHeight = this.MIN_COMPOSER_HEIGHT + 32 + (this.state.replyingTo ? 38 : 0) + (this.hasImagesAttached() ? IMAGE_PREVIEW_AREA_HEIGHT : 0);
746
769
  return /*#__PURE__*/React.createElement(GiftedChat, {
770
+ isKeyboardInternallyHandled: false,
747
771
  alwaysShowSend: false,
748
- keyboardShouldPersistTaps: 'never',
772
+ keyboardShouldPersistTaps: "never",
749
773
  renderAvatarOnTop: true,
750
774
  minInputToolbarHeight: minInputToolbarHeight,
751
- bottomOffset: Platform.OS === 'android' ? 0 : iosBottomOffset,
775
+ minComposerHeight: this.MIN_COMPOSER_HEIGHT,
776
+ bottomOffset: 0,
752
777
  onSend: this.sendMessages.bind(this),
753
778
  messages: this.state.messages,
754
779
  user: this.state.currentUser,
@@ -776,8 +801,8 @@ class PlussChat extends Component {
776
801
  onLibrarySelected: this.onLibrarySelected,
777
802
  quality: 0.8,
778
803
  allowsEditing: false,
779
- fileName: 'imageInput',
780
- popupTitle: 'Add Image',
804
+ fileName: "imageInput",
805
+ popupTitle: "Add Image",
781
806
  userId: this.props.user.uid,
782
807
  multiple: true,
783
808
  allowVideo: true
@@ -793,8 +818,7 @@ class PlussChat extends Component {
793
818
  visible: imagePopupOpen,
794
819
  images: imagePopupSource,
795
820
  index: imagePopupIndex,
796
- onClose: this.closeGallery.bind(this),
797
- ref: "imagePopup"
821
+ onClose: this.closeGallery.bind(this)
798
822
  });
799
823
  }
800
824
  renderVideoPlayerPopup() {
@@ -831,13 +855,8 @@ class PlussChat extends Component {
831
855
  });
832
856
  }
833
857
  render() {
834
- if (Platform.OS === 'android' && !this.props.noAndroidAvoid) {
835
- return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
836
- behavior: 'padding',
837
- style: styles.chatContainer
838
- }, this.renderChat(), this.renderImageUploader(), this.renderImagePopup(), this.renderVideoPlayerPopup(), this.renderPDF(), this.renderDeleteConfirmPopup());
839
- }
840
- return /*#__PURE__*/React.createElement(View, {
858
+ return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
859
+ behavior: "padding",
841
860
  style: styles.chatContainer
842
861
  }, this.renderChat(), this.renderImageUploader(), this.renderImagePopup(), this.renderVideoPlayerPopup(), this.renderPDF(), this.renderDeleteConfirmPopup());
843
862
  }
@@ -845,7 +864,7 @@ class PlussChat extends Component {
845
864
  const styles = {
846
865
  chatContainer: {
847
866
  flex: 1,
848
- justifyContent: 'center'
867
+ justifyContent: "center"
849
868
  },
850
869
  eventContainer: {
851
870
  left: {
@@ -853,20 +872,20 @@ const styles = {
853
872
  paddingLeft: 15,
854
873
  paddingRight: 15,
855
874
  paddingBottom: 5,
856
- flexDirection: 'row'
875
+ flexDirection: "row"
857
876
  },
858
877
  right: {
859
878
  paddingTop: 5,
860
879
  paddingLeft: 15,
861
880
  paddingRight: 15,
862
881
  paddingBottom: 5,
863
- flexDirection: 'row-reverse'
882
+ flexDirection: "row-reverse"
864
883
  }
865
884
  },
866
885
  eventImage: {
867
886
  width: 80,
868
887
  height: 80,
869
- resizeMode: 'cover',
888
+ resizeMode: "cover",
870
889
  borderRadius: 2
871
890
  },
872
891
  eventImageMargin: {
@@ -883,45 +902,45 @@ const styles = {
883
902
  },
884
903
  eventTitle: {
885
904
  fontSize: 12,
886
- fontFamily: 'sf-bold',
887
- backgroundColor: 'rgba(255,255,255,0)'
905
+ fontFamily: "sf-bold",
906
+ backgroundColor: "rgba(255,255,255,0)"
888
907
  },
889
908
  eventInfoAlign: {
890
909
  left: {
891
- textAlign: 'left'
910
+ textAlign: "left"
892
911
  },
893
912
  right: {
894
- textAlign: 'right'
913
+ textAlign: "right"
895
914
  }
896
915
  },
897
916
  messageImageLarge: {
898
917
  width: IMAGE_SIZE_LARGE,
899
918
  height: IMAGE_SIZE_LARGE,
900
919
  borderRadius: 2,
901
- alignSelf: 'center'
920
+ alignSelf: "center"
902
921
  },
903
922
  messageImageSmall: {
904
923
  width: IMAGE_SIZE_SMALL,
905
924
  height: IMAGE_SIZE_SMALL,
906
925
  borderRadius: 2,
907
- alignSelf: 'center',
926
+ alignSelf: "center",
908
927
  marginRight: IMAGE_MARGIN,
909
928
  marginBottom: IMAGE_MARGIN
910
929
  },
911
930
  eventDate: {
912
931
  fontSize: 12,
913
- fontFamily: 'sf-regular',
914
- backgroundColor: 'rgba(255,255,255,0)'
932
+ fontFamily: "sf-regular",
933
+ backgroundColor: "rgba(255,255,255,0)"
915
934
  },
916
935
  inputContainer: {
917
- backgroundColor: '#fff',
936
+ backgroundColor: "#fff",
918
937
  paddingVertical: 8,
919
938
  paddingHorizontal: 8
920
939
  },
921
940
  inputText: {
922
941
  color: TEXT_DARKEST,
923
942
  fontSize: 14,
924
- fontFamily: 'sf-medium'
943
+ fontFamily: "sf-medium"
925
944
  },
926
945
  input: {
927
946
  margin: 0,
@@ -934,12 +953,12 @@ const styles = {
934
953
  },
935
954
  composerInputWrapper: {
936
955
  flex: 1,
937
- flexDirection: 'row'
956
+ flexDirection: "row"
938
957
  },
939
958
  replyingTo: {
940
959
  minHeight: 30,
941
- flexDirection: 'row',
942
- alignItems: 'center',
960
+ flexDirection: "row",
961
+ alignItems: "center",
943
962
  borderBottomWidth: 1,
944
963
  borderBottomColor: LINEGREY,
945
964
  marginBottom: 8
@@ -948,34 +967,34 @@ const styles = {
948
967
  marginLeft: 10
949
968
  },
950
969
  replyingRemoveContainer: {
951
- justifyContent: 'center',
952
- alignItems: 'center',
970
+ justifyContent: "center",
971
+ alignItems: "center",
953
972
  borderRadius: 10,
954
973
  width: 20,
955
974
  height: 20,
956
975
  borderWidth: 2,
957
- borderColor: '#fff'
976
+ borderColor: "#fff"
958
977
  },
959
978
  replyingRemoveIcon: {
960
979
  fontSize: 10,
961
- color: '#fff',
980
+ color: "#fff",
962
981
  marginBottom: 1
963
982
  },
964
983
  sendContainer: {
965
- position: 'absolute',
984
+ position: "absolute",
966
985
  top: 0,
967
986
  right: 0,
968
987
  height: 30,
969
988
  width: 30,
970
- alignItems: 'center',
971
- justifyContent: 'center',
972
- backgroundColor: '#fff'
989
+ alignItems: "center",
990
+ justifyContent: "center",
991
+ backgroundColor: "#fff"
973
992
  },
974
993
  send: {
975
994
  fontSize: 15,
976
995
  color: TEXT_BLUEGREY,
977
996
  fontSize: 24,
978
- textAlign: 'center'
997
+ textAlign: "center"
979
998
  },
980
999
  accessory: {
981
1000
  height: IMAGE_PREVIEW_AREA_HEIGHT,
@@ -997,50 +1016,50 @@ const styles = {
997
1016
  borderRadius: 2
998
1017
  },
999
1018
  settingDropDownOpen: {
1000
- height: 'auto'
1019
+ height: "auto"
1001
1020
  },
1002
1021
  imagesContainer: {
1003
1022
  marginLeft: 10,
1004
1023
  marginRight: 10,
1005
- flexDirection: 'row',
1006
- flexWrap: 'wrap'
1024
+ flexDirection: "row",
1025
+ flexWrap: "wrap"
1007
1026
  },
1008
1027
  uploadImagesContainer: {
1009
- flexDirection: 'row',
1010
- overflow: 'visible'
1028
+ flexDirection: "row",
1029
+ overflow: "visible"
1011
1030
  },
1012
1031
  previewItemRemoveButton: {
1013
- position: 'absolute',
1032
+ position: "absolute",
1014
1033
  top: 0,
1015
1034
  right: 0
1016
1035
  },
1017
1036
  previewItemRemoveContainer: {
1018
- justifyContent: 'center',
1019
- alignItems: 'center',
1037
+ justifyContent: "center",
1038
+ alignItems: "center",
1020
1039
  borderRadius: 10,
1021
1040
  width: 20,
1022
1041
  height: 20,
1023
1042
  borderWidth: 2,
1024
- borderColor: '#fff'
1043
+ borderColor: "#fff"
1025
1044
  },
1026
1045
  previewItemRemoveIcon: {
1027
1046
  fontSize: 10,
1028
- color: '#fff',
1047
+ color: "#fff",
1029
1048
  marginBottom: 1
1030
1049
  },
1031
1050
  imagePlayContainer: {
1032
- position: 'absolute',
1051
+ position: "absolute",
1033
1052
  top: 0,
1034
1053
  left: 0,
1035
1054
  right: 0,
1036
1055
  bottom: 0,
1037
- alignItems: 'center',
1038
- justifyContent: 'center'
1056
+ alignItems: "center",
1057
+ justifyContent: "center"
1039
1058
  },
1040
1059
  imageControlIcon: {
1041
- color: '#fff',
1060
+ color: "#fff",
1042
1061
  fontSize: 20,
1043
- textShadowColor: 'rgba(0,0,0,0.3)',
1062
+ textShadowColor: "rgba(0,0,0,0.3)",
1044
1063
  textShadowOffset: {
1045
1064
  width: 2,
1046
1065
  height: 2
@@ -1055,5 +1074,5 @@ const mapStateToProps = state => {
1055
1074
  tabCount: getEnabledTabsFromState(state).length
1056
1075
  };
1057
1076
  };
1058
- export default connect(mapStateToProps, {})(PlussChat);
1077
+ export default connect(mapStateToProps, {})(withSafeAreaInsets(PlussChat));
1059
1078
  //# sourceMappingURL=PlussChat.js.map