@cometchat/chat-uikit-react-native 4.3.21 → 4.3.22-t1
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/package.json +1 -1
- package/src/AI/AIConversationSummary/AIConversationSummaryView.tsx +171 -167
- package/src/AI/CardView.tsx +55 -53
- package/src/CometChatCreateGroup/CometChatCreateGroup.tsx +8 -13
- package/src/CometChatGroups/CometChatGroups.tsx +545 -514
- package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +5 -8
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +544 -378
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +103 -78
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +3 -8
- package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +11 -13
- package/src/CometChatUsers/CometChatUsers.tsx +24 -23
- package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +24 -25
- package/src/extensions/Polls/Polls.tsx +8 -16
- package/src/extensions/Polls/PollsBubble.tsx +5 -10
- package/src/extensions/SmartReplies/SmartRepliesView.tsx +16 -22
- package/src/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.tsx +51 -51
- package/src/shared/libs/datePickerModal/DateTimePickerModal.android.js +1 -7
- package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +38 -46
- package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +19 -19
- package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +8 -20
- package/src/shared/views/CometChatBadge/CometChatBadge.tsx +8 -14
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +141 -140
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +47 -51
- package/src/shared/views/CometChatDate/CometChatDate.tsx +18 -17
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +65 -51
- package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +76 -72
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +3 -8
- package/src/shared/views/CometChatList/CometChatList.tsx +133 -134
- package/src/shared/views/CometChatListItem/CometChatListItem.tsx +65 -64
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +2 -6
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +3 -8
- package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +24 -23
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +107 -53
- package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +22 -14
- package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +15 -8
- package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +2 -6
- package/src/shared/views/SwipeRow/SwipeRow.tsx +6 -14
|
@@ -55,7 +55,7 @@ export interface CometChatTextBubbleInterface {
|
|
|
55
55
|
export const CometChatTextBubble = (props: CometChatTextBubbleInterface) => {
|
|
56
56
|
|
|
57
57
|
const {
|
|
58
|
-
text,
|
|
58
|
+
text = "",
|
|
59
59
|
textContainerStyle,
|
|
60
60
|
textFormatters
|
|
61
61
|
} = props;
|
|
@@ -103,11 +103,7 @@ export const CometChatTextBubble = (props: CometChatTextBubbleInterface) => {
|
|
|
103
103
|
border,
|
|
104
104
|
textContainerStyle
|
|
105
105
|
] as ViewProps}>
|
|
106
|
-
<Text style={[{ color: textColor }, textFont] as TextStyle}>{formattedText}</Text>
|
|
106
|
+
<Text style={[{ color: textColor }, textFont] as TextStyle[]}>{formattedText}</Text>
|
|
107
107
|
|
|
108
108
|
</View>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
CometChatTextBubble.defaultProps = {
|
|
112
|
-
text: ""
|
|
113
109
|
}
|
|
@@ -21,15 +21,12 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
|
|
|
21
21
|
const [translate, setTranslate] = useState(0);
|
|
22
22
|
const { theme } = useContext<CometChatContextType>(CometChatContext);
|
|
23
23
|
|
|
24
|
-
const {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const listItemStyle = {
|
|
31
|
-
...props.listItemStyle,
|
|
32
|
-
};
|
|
24
|
+
const {
|
|
25
|
+
id,
|
|
26
|
+
options,
|
|
27
|
+
children,
|
|
28
|
+
listItemStyle= {},
|
|
29
|
+
} = props;
|
|
33
30
|
|
|
34
31
|
const [swipeRowOptions, setSwipeRowOptions] = useState<any[]>([]);
|
|
35
32
|
let cancelClick = false;
|
|
@@ -119,7 +116,6 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
|
|
|
119
116
|
data={swipeRowOptions.slice(0, 3)}
|
|
120
117
|
renderItem={OptionsListItem}
|
|
121
118
|
keyExtractor={(_, i) => _.id ?? i}
|
|
122
|
-
|
|
123
119
|
/>
|
|
124
120
|
)}
|
|
125
121
|
</View>
|
|
@@ -128,7 +124,3 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
|
|
|
128
124
|
</SwipeRow>
|
|
129
125
|
);
|
|
130
126
|
};
|
|
131
|
-
|
|
132
|
-
CometChatSwipeRow.defaultProps = {
|
|
133
|
-
listItemStyle: {},
|
|
134
|
-
};
|