CometChatQuickReactions
is a component designed to display a row of reactions that users can apply to messages. Initially, it shows favorite reactions along with a plus icon. Tapping the plus icon opens the CometChatEmojiKeyboard, providing access to a broader range of reactions. Selecting a reaction from the keyboard or the favorite reactions list automatically applies it to the respective message.
The quick reactions list can have a minimum of 1 and a maximum of 5 reactions.
This component is typically activated by long-pressing a message bubble in the message list.
CometChatQuickReactions
is a component that displays a list of favorite reactions with a plus button. The component requires a list of favorite reactions to function, which can be supplied using the quick reactions
property.
onReactionPress
action is activated when an emoji is pressed from the QuickReactions
List.
onAddReactionPress
action is activated when the add reaction icon is pressed.
Quick Reactions
component does not provide any exposed filtering options.
Quick Reactions
component does not provide any available events.
QuickReactionsStyle
is a class designed for customizing the visual styles of the CometChatQuickReactions view. It enables developers to easily modify colors, borders, backgrounds, and other visual attributes to align the QuickReactions component with the overall design aesthetics of their application.
This class is essential for enhancing user experience and ensuring visual consistency within the messaging interface.
QuickReactionsStyle
to customize the appearance.
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; |
emojiBackgroundColor | Sets the background color | emojiBackgroundColor?: string |
addReactionIconTint | Sets the tint for add reaction icon | addReactionIconTint?: string |
borderBottomColor | Sets the color for the bottom border | borderBottomColor?: string |
Property | Description | Code |
---|---|---|
quickReactions | Used to add custom emoji in quick reactions tab | quickReactions?: [string, string?, string?, string?, string?] |
addReactionUrl | Used to set custom add reaction button icon. | addReactionUrl?: ImageType |
Quick Reactions
component does not offer any advanced functionalities beyond this level of customization.