ReactionListBottom

ReactionListBottom displays reactions above a message. This is the default component for the ReactionListBottom prop.

Best Practices

  • Keep reaction lists compact to avoid covering message content.
  • Use supportedReactions to keep available reactions consistent.
  • Avoid heavy logic in press handlers for smooth interactions.
  • Respect preventPress when reactions should be read-only.
  • Use consistent placement (top/bottom) across your app.

Basic Usage

import {
  Channel,
  ReactionListBottom,
  ReactionListBottomProps,
} from "stream-chat-react-native";

const CustomReactionListBottom = (props: ReactionListBottomProps) => (
  <ReactionListBottom {...props} />
);

<Channel ReactionListBottom={CustomReactionListBottom} />;

Props

handleReaction

Handles a reaction on a message. Called when a user reacts; should update the message and context.

TypeDefault
(reactionType: string) => Promise<void> | undefinedundefined

hasReactions

True if the message has at least one reaction.

Type
boolean

onLongPress

Default long press handler for message UI.

Type
function

onPress

Default press handler for message UI.

Type
function

onPressIn

Default pressIn handler for message UI.

Type
function

preventPress

reactions

Reactions added to the message.

[
  {
    own: true,
    type: "love",
  },
  {
    own: false,
    type: "haha",
  },
];
Type
array

supportedReactions

List of reactions users can add to messages. See customizing reactions.

TypeDefault
ArrayreactionData