Reaction List
component provides a comprehensive display of reactions associated with a message, showcasing which reactions were made by individual users. Additionaly, users can interact with the list to remove their own reactions.
reactionItemClicked
event gets activated when a user clicks on a reaction item within the CometChat Reaction List component. This event provides a way to capture and respond to user interactions with specific reactions.
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.
You can adjust the ReactionsRequestBuilder
in the Reaction list Component to customize your Reaction list. Numerous options are available to alter the builder to meet your specific needs. For additional details on ReactionsRequestBuilder
, please visit ReactionsRequestBuilder.
In the example below, we demonstrate the application of a filter to the reactions list
. This filter allows you to specify a limit of the users who have reacted to the perticular message.
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 list
component does not produce any events.
reactionListStyle
object to the Reactions List
component.
Example
In this example, we are employing the reactionListStyle
.
Property | Description | Code |
---|---|---|
border | Used to set border | border?: string, |
borderRadius | Used to set border radius | borderRadius?: string; |
background | Used to set background colour | background?: string; |
height | Used to set height | height?: string; |
width | Used to set width | width?: string; |
sliderEmojiFont | used to set the font of slider emoji | sliderEmojiFont?: string; |
sliderEmojiCountFont | used to set the font of the slider emoji count | sliderEmojiCountFont?: string; |
sliderEmojiCountColor | used to set the color of the slider emoji count | sliderEmojiCountColor?: string; |
activeEmojiBackground | used to set the active emoji background | activeEmojiBackground?: string; |
loadingIconTint | used to set the loading icon color | loadingIconTint?: string; |
errorIconTint | used to set the error icon color | errorIconTint?: string; |
tailViewFont | used to set the tail view font | tailViewFont?: string; |
subtitleTextFont | used to set the subtitle text font | subtitleTextFont?: string; |
subtitleTextColor | used to set the subtitle text color | subtitleTextColor?: string; |
dividerTint | used to set the divider color | dividerTint?: string; |
Avatar
component within the Reaction List
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
ListItemStyle
component within the Reaction List
Component, you can use the following code snippet. For more information, you can refer ListItem Styles.
Property | Description | Code |
---|---|---|
loadingIconURL | used to set the custom loading icon | loadingIconURL="your custom loading icon url" |
errorIconURL | used to set the error icon | errorIconURL="your custom error icon url" |