Comment View
Overview
LMCommentItem
is designed to display detailed information about a comment for a feed post.
Callbacks
onTapViewMore
: Callback to load more replies.page
of type number anddata
which is an array ofLMCommentViewData
will be returned from this callback.onTapReplies
: Callback to render initial list of replies.data
which is an array ofLMCommentViewData
andcommentIdOfReplies
os typestring
will be returned from this callback.onCommentOverflowMenuClick
: Callback trigerred on click of menu icon & handles the position and visibility of the modal.event
object andcommentId
of typestring
will be returned from this callback.
Customisation
Property | Type | Description |
---|---|---|
likeIconButton | LMButtonProps | Custom like icon button |
likeTextButton | LMButtonProps | Custom like text button |
onTapViewMore | Function | Callback function to be executed on click of view more replies |
commentMaxLines | number | Maximum lines of comment to be shown |
menuIcon | LMButtonProps | Custom menu icon button |
commentUserNameStyle | TextStyle | Custom style for user name text |
commentContentProps | LMTextProps | Custom props for comment item |
showMoreProps | LMTextProps | Custom props for see more text |
replyTextProps | LMButtonProps | Custom props for reply text |
repliesCountTextStyle | TextStyle | Custom props for comment text count |
timeStampStyle | TextStyle | Custom props for time stamp text |
viewMoreRepliesProps | LMTextProps | Custom props for View more text |
onTapReplies | Function | Custom callback to be executed on click of Replies text |
isRepliesVisible | boolean | Boolean to decide whether replies will be visible or not |
onCommentOverflowMenuClick | Function | Custom callback on click of menu icon & handles the position and visibility of the modal |
hideThreeDotsMenu | boolean | Boolean to hide/show three dots |