@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.
- package/dist/module/actions/FollowerActions.js +4 -4
- package/dist/module/actions/FollowerActions.js.map +1 -1
- package/dist/module/actions/MediaActions.js +1 -1
- package/dist/module/actions/MediaActions.js.map +1 -1
- package/dist/module/actions/ResidentActions.js +1 -1
- package/dist/module/actions/ResidentActions.js.map +1 -1
- package/dist/module/actions/UserActions.js +1 -1
- package/dist/module/actions/UserActions.js.map +1 -1
- package/dist/module/actions/UserSettingsActions.js +1 -1
- package/dist/module/actions/UserSettingsActions.js.map +1 -1
- package/dist/module/actions/index.js +5 -5
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +16 -16
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/analyticsActions.js +5 -5
- package/dist/module/apis/analyticsActions.js.map +1 -1
- package/dist/module/apis/contactActions.js +6 -6
- package/dist/module/apis/contactActions.js.map +1 -1
- package/dist/module/apis/eventActions.js +28 -28
- package/dist/module/apis/eventActions.js.map +1 -1
- package/dist/module/apis/fileActions.js +15 -15
- package/dist/module/apis/fileActions.js.map +1 -1
- package/dist/module/apis/followerActions.js +8 -8
- package/dist/module/apis/followerActions.js.map +1 -1
- package/dist/module/apis/index.js +12 -12
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/notificationActions.js +17 -17
- package/dist/module/apis/notificationActions.js.map +1 -1
- package/dist/module/apis/profileActions.js +4 -4
- package/dist/module/apis/profileActions.js.map +1 -1
- package/dist/module/apis/reactionActions.js +15 -15
- package/dist/module/apis/reactionActions.js.map +1 -1
- package/dist/module/apis/settingActions.js +6 -6
- package/dist/module/apis/settingActions.js.map +1 -1
- package/dist/module/apis/stringActions.js +8 -8
- package/dist/module/apis/stringActions.js.map +1 -1
- package/dist/module/apis/typeActions.js +4 -4
- package/dist/module/apis/typeActions.js.map +1 -1
- package/dist/module/apis/userActions.js +8 -8
- package/dist/module/apis/userActions.js.map +1 -1
- package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/dist/module/colours.js +26 -29
- package/dist/module/colours.js.map +1 -1
- package/dist/module/components/AddButton.js +8 -8
- package/dist/module/components/AddButton.js.map +1 -1
- package/dist/module/components/AddToCalendarButton.js +30 -29
- package/dist/module/components/AddToCalendarButton.js.map +1 -1
- package/dist/module/components/Attachment.js +10 -9
- package/dist/module/components/Attachment.js.map +1 -1
- package/dist/module/components/AudienceSelectorLauncher.js +11 -11
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
- package/dist/module/components/AudienceSelectorPage.js +45 -44
- package/dist/module/components/AudienceSelectorPage.js.map +1 -1
- package/dist/module/components/AutoOffsetImage.js +13 -13
- package/dist/module/components/AutoOffsetImage.js.map +1 -1
- package/dist/module/components/BackButton.js +10 -10
- package/dist/module/components/BackButton.js.map +1 -1
- package/dist/module/components/CalendarPopup.js +21 -21
- package/dist/module/components/CalendarPopup.js.map +1 -1
- package/dist/module/components/CategoryTabs.js +30 -29
- package/dist/module/components/CategoryTabs.js.map +1 -1
- package/dist/module/components/CommentReply.js +43 -37
- package/dist/module/components/CommentReply.js.map +1 -1
- package/dist/module/components/CommentSection.js +74 -74
- package/dist/module/components/CommentSection.js.map +1 -1
- package/dist/module/components/ConfirmPopup.js +21 -20
- package/dist/module/components/ConfirmPopup.js.map +1 -1
- package/dist/module/components/ConfirmationPopup.js +11 -11
- package/dist/module/components/ConfirmationPopup.js.map +1 -1
- package/dist/module/components/DocumentUploader.js +50 -50
- package/dist/module/components/DocumentUploader.js.map +1 -1
- package/dist/module/components/DropDownItem.js +14 -13
- package/dist/module/components/DropDownItem.js.map +1 -1
- package/dist/module/components/DropDownMenu.js +5 -5
- package/dist/module/components/DropDownMenu.js.map +1 -1
- package/dist/module/components/EmptyStateMain.js +10 -9
- package/dist/module/components/EmptyStateMain.js.map +1 -1
- package/dist/module/components/EmptyStateWidget.js +7 -6
- package/dist/module/components/EmptyStateWidget.js.map +1 -1
- package/dist/module/components/FontScaleButton.js +5 -4
- package/dist/module/components/FontScaleButton.js.map +1 -1
- package/dist/module/components/FontScalePopup.js +11 -10
- package/dist/module/components/FontScalePopup.js.map +1 -1
- package/dist/module/components/Forbidden.js +13 -13
- package/dist/module/components/Forbidden.js.map +1 -1
- package/dist/module/components/FormCard.js +4 -4
- package/dist/module/components/FormCard.js.map +1 -1
- package/dist/module/components/FormCardSection.js +20 -18
- package/dist/module/components/FormCardSection.js.map +1 -1
- package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
- package/dist/module/components/FormattedText.js +18 -16
- package/dist/module/components/FormattedText.js.map +1 -1
- package/dist/module/components/GenericInput.js +24 -21
- package/dist/module/components/GenericInput.js.map +1 -1
- package/dist/module/components/GenericInputSection.js +27 -26
- package/dist/module/components/GenericInputSection.js.map +1 -1
- package/dist/module/components/Header.js +70 -69
- package/dist/module/components/Header.js.map +1 -1
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +211 -73
- package/dist/module/components/ImagePopup.js.map +1 -1
- package/dist/module/components/ImageUploadProgress.js +10 -9
- package/dist/module/components/ImageUploadProgress.js.map +1 -1
- package/dist/module/components/ImageUploader.js +116 -96
- package/dist/module/components/ImageUploader.js.map +1 -1
- package/dist/module/components/InlineButton.js +9 -8
- package/dist/module/components/InlineButton.js.map +1 -1
- package/dist/module/components/Input.js +28 -26
- package/dist/module/components/Input.js.map +1 -1
- package/dist/module/components/LoadingCircles.js +20 -20
- package/dist/module/components/LoadingCircles.js.map +1 -1
- package/dist/module/components/LoadingIndicator.js +11 -11
- package/dist/module/components/LoadingIndicator.js.map +1 -1
- package/dist/module/components/LoadingStateWidget.js +5 -5
- package/dist/module/components/LoadingStateWidget.js.map +1 -1
- package/dist/module/components/MediaPlayer.js +31 -31
- package/dist/module/components/MediaPlayer.js.map +1 -1
- package/dist/module/components/MiddlePopup.js +17 -11
- package/dist/module/components/MiddlePopup.js.map +1 -1
- package/dist/module/components/PDFPopup.js +52 -39
- package/dist/module/components/PDFPopup.js.map +1 -1
- package/dist/module/components/PlussChat.js +168 -149
- package/dist/module/components/PlussChat.js.map +1 -1
- package/dist/module/components/PlussChatMessage.js +42 -42
- package/dist/module/components/PlussChatMessage.js.map +1 -1
- package/dist/module/components/PlussChatTime.js +18 -17
- package/dist/module/components/PlussChatTime.js.map +1 -1
- package/dist/module/components/Popup.js +20 -19
- package/dist/module/components/Popup.js.map +1 -1
- package/dist/module/components/PopupMenu.js +15 -14
- package/dist/module/components/PopupMenu.js.map +1 -1
- package/dist/module/components/PositionedImage.js +20 -20
- package/dist/module/components/PositionedImage.js.map +1 -1
- package/dist/module/components/ProfilePic.js +10 -10
- package/dist/module/components/ProfilePic.js.map +1 -1
- package/dist/module/components/RadioButton.js +10 -9
- package/dist/module/components/RadioButton.js.map +1 -1
- package/dist/module/components/Reaction.js +18 -17
- package/dist/module/components/Reaction.js.map +1 -1
- package/dist/module/components/Reactions.js +7 -7
- package/dist/module/components/Reactions.js.map +1 -1
- package/dist/module/components/SharingTools.js +78 -43
- package/dist/module/components/SharingTools.js.map +1 -1
- package/dist/module/components/Spinner.js +5 -5
- package/dist/module/components/Spinner.js.map +1 -1
- package/dist/module/components/StickyFooter.js +6 -6
- package/dist/module/components/StickyFooter.js.map +1 -1
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +6 -6
- package/dist/module/components/TickIcon.js.map +1 -1
- package/dist/module/components/Toggle.js +10 -9
- package/dist/module/components/Toggle.js.map +1 -1
- package/dist/module/components/TouchableSearchBar.js +18 -17
- package/dist/module/components/TouchableSearchBar.js.map +1 -1
- package/dist/module/components/UserListPopup.js +20 -19
- package/dist/module/components/UserListPopup.js.map +1 -1
- package/dist/module/components/UserListing.js +41 -40
- package/dist/module/components/UserListing.js.map +1 -1
- package/dist/module/components/VideoPopup.js +20 -20
- package/dist/module/components/VideoPopup.js.map +1 -1
- package/dist/module/components/WarningPopup.js +21 -20
- package/dist/module/components/WarningPopup.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
- package/dist/module/components/index.js +59 -58
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +94 -64
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
- package/dist/module/config.js +15 -10
- package/dist/module/config.js.map +1 -1
- package/dist/module/constants.js +3 -4
- package/dist/module/constants.js.map +1 -1
- package/dist/module/helper.js +83 -82
- package/dist/module/helper.js.map +1 -1
- package/dist/module/index.js +12 -12
- package/dist/module/index.js.map +1 -1
- package/dist/module/js/images/detectFaces.js +11 -10
- package/dist/module/js/images/detectFaces.js.map +1 -1
- package/dist/module/js/images/findLandmarkRange.js +8 -8
- package/dist/module/js/images/findLandmarkRange.js.map +1 -1
- package/dist/module/js/images/getScaledOffset.js.map +1 -1
- package/dist/module/js/site/getSiteLevelFromState.js +2 -2
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
- package/dist/module/js/site/isTVEnabled.js +2 -2
- package/dist/module/js/site/isTVEnabled.js.map +1 -1
- package/dist/module/session.js +6 -6
- package/dist/module/session.js.map +1 -1
- package/dist/module/styles.js +17 -17
- package/dist/module/styles.js.map +1 -1
- package/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +71 -68
- package/src/actions/FollowerActions.js +36 -32
- package/src/actions/MediaActions.js +25 -20
- package/src/actions/ResidentActions.js +26 -21
- package/src/actions/UserActions.js +22 -22
- package/src/actions/UserSettingsActions.js +11 -11
- package/src/actions/index.js +5 -5
- package/src/actions/types.js +16 -16
- package/src/apis/analyticsActions.js +17 -17
- package/src/apis/contactActions.js +20 -20
- package/src/apis/eventActions.js +153 -144
- package/src/apis/fileActions.js +96 -86
- package/src/apis/followerActions.js +29 -29
- package/src/apis/index.js +12 -12
- package/src/apis/notificationActions.js +44 -44
- package/src/apis/profileActions.js +8 -8
- package/src/apis/reactionActions.js +81 -73
- package/src/apis/settingActions.js +15 -15
- package/src/apis/stringActions.js +29 -25
- package/src/apis/typeActions.js +10 -10
- package/src/apis/userActions.js +93 -93
- package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/src/colours.js +116 -96
- package/src/components/AddButton.js +32 -27
- package/src/components/AddToCalendarButton.js +236 -202
- package/src/components/Attachment.js +59 -36
- package/src/components/AudienceSelectorLauncher.js +52 -48
- package/src/components/AudienceSelectorPage.js +353 -311
- package/src/components/AutoOffsetImage.js +237 -196
- package/src/components/BackButton.js +57 -41
- package/src/components/CalendarPopup.js +127 -97
- package/src/components/CategoryTabs.js +208 -163
- package/src/components/CommentReply.js +370 -309
- package/src/components/CommentSection.js +974 -781
- package/src/components/ConfirmPopup.js +141 -110
- package/src/components/ConfirmationPopup.js +80 -69
- package/src/components/DocumentUploader.js +245 -215
- package/src/components/DropDownItem.js +70 -60
- package/src/components/DropDownMenu.js +31 -27
- package/src/components/EmptyStateMain.js +51 -44
- package/src/components/EmptyStateWidget.js +47 -38
- package/src/components/FontScaleButton.js +29 -25
- package/src/components/FontScalePopup.js +67 -56
- package/src/components/Forbidden.js +48 -46
- package/src/components/FormCard.js +21 -17
- package/src/components/FormCardSection.js +284 -233
- package/src/components/FormCardSectionOptionLauncher.js +72 -46
- package/src/components/FormattedText.js +128 -111
- package/src/components/GenericInput.js +168 -136
- package/src/components/GenericInputSection.js +209 -161
- package/src/components/Header.js +620 -474
- package/src/components/Icon.js +119 -0
- package/src/components/ImagePopup.js +425 -221
- package/src/components/ImageUploadProgress.js +49 -41
- package/src/components/ImageUploader.js +968 -797
- package/src/components/InlineButton.js +79 -69
- package/src/components/Input.js +190 -156
- package/src/components/LoadingCircles.js +233 -233
- package/src/components/LoadingIndicator.js +87 -76
- package/src/components/LoadingStateWidget.js +47 -37
- package/src/components/MediaPlayer.js +416 -387
- package/src/components/MiddlePopup.js +62 -33
- package/src/components/PDFPopup.js +212 -159
- package/src/components/PlussChat.js +1224 -1025
- package/src/components/PlussChatMessage.js +329 -298
- package/src/components/PlussChatTime.js +57 -53
- package/src/components/Popup.js +138 -116
- package/src/components/PopupMenu.js +140 -110
- package/src/components/PositionedImage.js +281 -237
- package/src/components/ProfilePic.js +122 -113
- package/src/components/RadioButton.js +76 -52
- package/src/components/Reaction.js +134 -96
- package/src/components/Reactions.js +65 -63
- package/src/components/SharingTools.js +185 -134
- package/src/components/Spinner.js +13 -13
- package/src/components/StickyFooter.js +36 -26
- package/src/components/Text.js +62 -0
- package/src/components/TickIcon.js +20 -20
- package/src/components/Toggle.js +74 -73
- package/src/components/TouchableSearchBar.js +68 -50
- package/src/components/UserListPopup.js +161 -124
- package/src/components/UserListing.js +273 -238
- package/src/components/VideoPopup.js +110 -96
- package/src/components/WarningPopup.js +92 -71
- package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
- package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
- package/src/components/index.js +59 -58
- package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +444 -359
- package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
- package/src/config.js +26 -21
- package/src/constants.js +8 -10
- package/src/helper.js +469 -438
- package/src/index.js +24 -12
- package/src/js/images/detectFaces.js +28 -21
- package/src/js/images/findLandmarkRange.js +97 -90
- package/src/js/images/getScaledOffset.js +80 -75
- package/src/js/site/getSiteLevelFromState.js +26 -26
- package/src/js/site/isTVEnabled.js +10 -10
- package/src/session.js +32 -32
- package/src/styles.js +61 -61
- package/src/withNavigationFocus.js +28 -0
- package/dist/module/components/TextStyle.js +0 -45
- package/dist/module/components/TextStyle.js.map +0 -1
- package/dist/module/fonts/index.js +0 -2
- package/dist/module/fonts/index.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.js +0 -5
- package/dist/module/fonts/pluss60-icons.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.json +0 -1097
- package/src/components/TextStyle.js +0 -48
- package/src/fonts/index.js +0 -1
- package/src/fonts/pluss60-icons.js +0 -7
- 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
|
|
6
|
-
import { View, Image, ImageBackground, TouchableOpacity,
|
|
7
|
-
import { GiftedChat, Bubble, MessageText, Send, InputToolbar
|
|
8
|
-
import { connect } from
|
|
9
|
-
import _ from
|
|
10
|
-
import moment from
|
|
11
|
-
import { Icon } from
|
|
12
|
-
import {
|
|
13
|
-
import { Spinner } from
|
|
14
|
-
import { ProfilePic } from
|
|
15
|
-
import PlussChatTime from
|
|
16
|
-
import { PDFPopup } from
|
|
17
|
-
import { Attachment } from
|
|
18
|
-
import PlussChatMessage from
|
|
19
|
-
import {
|
|
20
|
-
import { ConfirmPopup } from
|
|
21
|
-
import { TEXT_DARK, LINEGREY, TEXT_DARKEST, getMainBrandingColourFromState, getLightBrandingColourFromState, BG_GREY, TEXT_BLUEGREY } from
|
|
22
|
-
import { getEnabledTabsFromState, get1400, getThumb300, imageExists, isVideo, getImageSource, getFileName } from
|
|
23
|
-
import Config, { Services } from
|
|
24
|
-
import ImageUploader from
|
|
25
|
-
import ImageUploadProgress from
|
|
26
|
-
import { ImagePopup } from
|
|
27
|
-
import { VideoPopup } from
|
|
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(
|
|
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
|
|
45
|
-
Services.navigation.navigate(
|
|
45
|
+
case "Event":
|
|
46
|
+
Services.navigation.navigate("eventDetail", {
|
|
46
47
|
event: attachment
|
|
47
48
|
});
|
|
48
49
|
break;
|
|
49
|
-
case
|
|
50
|
-
Services.navigation.navigate(
|
|
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:
|
|
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(
|
|
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(
|
|
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 !==
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
283
|
-
if (!_.isUndefined(props.messages)) {
|
|
284
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 ===
|
|
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(
|
|
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(
|
|
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:
|
|
555
|
-
top:
|
|
556
|
-
right:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
|
|
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
|
-
}
|
|
567
|
-
name:
|
|
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(
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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:
|
|
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:
|
|
672
|
-
alignContent:
|
|
685
|
+
justifyContent: "center",
|
|
686
|
+
alignContent: "center"
|
|
673
687
|
}
|
|
674
688
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
675
|
-
size:
|
|
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:
|
|
706
|
+
style: {
|
|
707
|
+
width: "100%"
|
|
708
|
+
}
|
|
693
709
|
}, this.state.replyingTo && /*#__PURE__*/React.createElement(View, {
|
|
694
710
|
style: styles.replyingTo
|
|
695
|
-
}, /*#__PURE__*/React.createElement(
|
|
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) ?
|
|
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:
|
|
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
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
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(
|
|
726
|
-
|
|
747
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
748
|
+
maxFontSizeMultiplier: 1.2,
|
|
727
749
|
placeholder: "Type a message...",
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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:
|
|
772
|
+
keyboardShouldPersistTaps: "never",
|
|
749
773
|
renderAvatarOnTop: true,
|
|
750
774
|
minInputToolbarHeight: minInputToolbarHeight,
|
|
751
|
-
|
|
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:
|
|
780
|
-
popupTitle:
|
|
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
|
-
|
|
835
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
882
|
+
flexDirection: "row-reverse"
|
|
864
883
|
}
|
|
865
884
|
},
|
|
866
885
|
eventImage: {
|
|
867
886
|
width: 80,
|
|
868
887
|
height: 80,
|
|
869
|
-
resizeMode:
|
|
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:
|
|
887
|
-
backgroundColor:
|
|
905
|
+
fontFamily: "sf-bold",
|
|
906
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
888
907
|
},
|
|
889
908
|
eventInfoAlign: {
|
|
890
909
|
left: {
|
|
891
|
-
textAlign:
|
|
910
|
+
textAlign: "left"
|
|
892
911
|
},
|
|
893
912
|
right: {
|
|
894
|
-
textAlign:
|
|
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:
|
|
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:
|
|
926
|
+
alignSelf: "center",
|
|
908
927
|
marginRight: IMAGE_MARGIN,
|
|
909
928
|
marginBottom: IMAGE_MARGIN
|
|
910
929
|
},
|
|
911
930
|
eventDate: {
|
|
912
931
|
fontSize: 12,
|
|
913
|
-
fontFamily:
|
|
914
|
-
backgroundColor:
|
|
932
|
+
fontFamily: "sf-regular",
|
|
933
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
915
934
|
},
|
|
916
935
|
inputContainer: {
|
|
917
|
-
backgroundColor:
|
|
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:
|
|
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:
|
|
956
|
+
flexDirection: "row"
|
|
938
957
|
},
|
|
939
958
|
replyingTo: {
|
|
940
959
|
minHeight: 30,
|
|
941
|
-
flexDirection:
|
|
942
|
-
alignItems:
|
|
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:
|
|
952
|
-
alignItems:
|
|
970
|
+
justifyContent: "center",
|
|
971
|
+
alignItems: "center",
|
|
953
972
|
borderRadius: 10,
|
|
954
973
|
width: 20,
|
|
955
974
|
height: 20,
|
|
956
975
|
borderWidth: 2,
|
|
957
|
-
borderColor:
|
|
976
|
+
borderColor: "#fff"
|
|
958
977
|
},
|
|
959
978
|
replyingRemoveIcon: {
|
|
960
979
|
fontSize: 10,
|
|
961
|
-
color:
|
|
980
|
+
color: "#fff",
|
|
962
981
|
marginBottom: 1
|
|
963
982
|
},
|
|
964
983
|
sendContainer: {
|
|
965
|
-
position:
|
|
984
|
+
position: "absolute",
|
|
966
985
|
top: 0,
|
|
967
986
|
right: 0,
|
|
968
987
|
height: 30,
|
|
969
988
|
width: 30,
|
|
970
|
-
alignItems:
|
|
971
|
-
justifyContent:
|
|
972
|
-
backgroundColor:
|
|
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:
|
|
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:
|
|
1019
|
+
height: "auto"
|
|
1001
1020
|
},
|
|
1002
1021
|
imagesContainer: {
|
|
1003
1022
|
marginLeft: 10,
|
|
1004
1023
|
marginRight: 10,
|
|
1005
|
-
flexDirection:
|
|
1006
|
-
flexWrap:
|
|
1024
|
+
flexDirection: "row",
|
|
1025
|
+
flexWrap: "wrap"
|
|
1007
1026
|
},
|
|
1008
1027
|
uploadImagesContainer: {
|
|
1009
|
-
flexDirection:
|
|
1010
|
-
overflow:
|
|
1028
|
+
flexDirection: "row",
|
|
1029
|
+
overflow: "visible"
|
|
1011
1030
|
},
|
|
1012
1031
|
previewItemRemoveButton: {
|
|
1013
|
-
position:
|
|
1032
|
+
position: "absolute",
|
|
1014
1033
|
top: 0,
|
|
1015
1034
|
right: 0
|
|
1016
1035
|
},
|
|
1017
1036
|
previewItemRemoveContainer: {
|
|
1018
|
-
justifyContent:
|
|
1019
|
-
alignItems:
|
|
1037
|
+
justifyContent: "center",
|
|
1038
|
+
alignItems: "center",
|
|
1020
1039
|
borderRadius: 10,
|
|
1021
1040
|
width: 20,
|
|
1022
1041
|
height: 20,
|
|
1023
1042
|
borderWidth: 2,
|
|
1024
|
-
borderColor:
|
|
1043
|
+
borderColor: "#fff"
|
|
1025
1044
|
},
|
|
1026
1045
|
previewItemRemoveIcon: {
|
|
1027
1046
|
fontSize: 10,
|
|
1028
|
-
color:
|
|
1047
|
+
color: "#fff",
|
|
1029
1048
|
marginBottom: 1
|
|
1030
1049
|
},
|
|
1031
1050
|
imagePlayContainer: {
|
|
1032
|
-
position:
|
|
1051
|
+
position: "absolute",
|
|
1033
1052
|
top: 0,
|
|
1034
1053
|
left: 0,
|
|
1035
1054
|
right: 0,
|
|
1036
1055
|
bottom: 0,
|
|
1037
|
-
alignItems:
|
|
1038
|
-
justifyContent:
|
|
1056
|
+
alignItems: "center",
|
|
1057
|
+
justifyContent: "center"
|
|
1039
1058
|
},
|
|
1040
1059
|
imageControlIcon: {
|
|
1041
|
-
color:
|
|
1060
|
+
color: "#fff",
|
|
1042
1061
|
fontSize: 20,
|
|
1043
|
-
textShadowColor:
|
|
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
|