CometChatReactions
component provides a visual representation of emoji reactions associated with a specific message. It enables users to quickly identify which emojis were used to react to the message and by whom.
ReactionPress
is triggered when you press on each Reaction in the footer view of message bubble. You can override this action using the following code snippet.
onReactionPress
action.
ReactionLongPress
is triggered when you press on each Reaction in the footer view of message bubble. You can override this action using the following code snippet.
onReactionLongPress
action.
Component
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The Reactions
component does not have any exposed filters.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The Reactions
component does not produce any events.
reactionsStyle
object to the Reactions
component.
Example
In this example, we are employing the reactionsStyle
.
Property | Description | Code | |
---|---|---|---|
border | Used to set border | border?: BorderStyleInterface | |
borderRadius | Used to set border radius | borderRadius?: number; | |
backgroundColor | Used to set background colour | background?: string; | |
height | Used to set height | `height?: number | string;` |
width | Used to set width | `width?: number | string;` |
emojiFont | Used to set the Emoji Font | emojiFont?: FontStyle | |
countColor | Used to set the reactions count color | countColor?: string; | |
countFont | Used to set the reactions count font | countFont?: FontStyle; | |
primaryBackgroundColor | Used to set the reactions primary background color | primaryBorder?: BorderStyleInterface; | |
primaryBorder | Used to set the primary border | reactionBackground?: string; |
Property | Description | Code |
---|---|---|
alignment | Used to set the allignment of the reactions. it can be either left, right or center | alignment="right" |