MessageReplies
Renders thread reply count and avatars inside MessageList. This is the default component for the MessageReplies prop.
Best Practices
- Keep reply indicators compact to avoid clutter.
- Use
onOpenThreadto navigate to thread views consistently. - Respect alignment and thread state for consistent layout.
- Avoid heavy logic in press handlers.
- Use
preventPressfor read-only reply indicators.
Props
| Prop | Description | Type |
|---|---|---|
alignment | Sets whether the message aligns left or right in the list. Defaults to 'right'. | enum('right', 'left') |
message | Message object. | Message type |
onLongPress | Default long press handler for message UI. | function |
onPress | Default press handler for message UI. | function |
onOpenThread | Handler function for "Thread Reply" action. | function |
onPressIn | Default pressIn handler for message UI. | function |
preventPress | Disable press interactions for the replies row. | boolean |
threadList | True if the current message is part of a thread. | boolean |
UI Component Props
MessageRepliesAvatars
Component used to render participant avatars beside the reply count.
| Type | Default |
|---|---|
| ComponentType | MessageRepliesAvatars |