@cometchat/chat-uikit-react-native 4.2.0 → 4.2.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react-native",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly",
5
5
  "main": "src/index",
6
6
  "module": "src/index",
@@ -37,7 +37,12 @@ export const CometChatStickerKeyboard = (props: CometChatStickerKeyboardInterfac
37
37
 
38
38
  const theme = new CometChatTheme(props?.theme || {});
39
39
  const sendStickerMessage = (stickerItem) => {
40
- props?.onPress(stickerItem);
40
+ if(stickerItem && typeof stickerItem === 'object')
41
+ props?.onPress({
42
+ ...stickerItem,
43
+ sticker_url: stickerItem?.stickerUrl,
44
+ sticker_name: stickerItem?.stickerSetName
45
+ });
41
46
  };
42
47
 
43
48
  const onStickerSetClicked = (sectionItem) => {
@@ -49,7 +49,7 @@ export class StickersExtensionDecorator extends DataSourceDecorator {
49
49
  }
50
50
 
51
51
  getStickerBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignmentType) {
52
- let url = message?.['data']?.['customData']?.['stickerUrl'];
52
+ let url = message?.['data']?.['customData']?.['sticker_url'];
53
53
  return <CometChatStickerBubble
54
54
  url={url}
55
55
  name=""