Skip to main content

Comment View

Overview

LMCommentItem is designed to display detailed information about a comment for a feed post.

LMFeedPostDetailCommentHeaderView

Callbacks

  • onTapViewMore: Callback to load more replies. page of type number and data which is an array of LMCommentViewData will be returned from this callback.
  • onTapReplies: Callback to render initial list of replies. data which is an array of LMCommentViewData and commentIdOfReplies os type string will be returned from this callback.
  • onCommentOverflowMenuClick: Callback trigerred on click of menu icon & handles the position and visibility of the modal. event object and commentId of type string will be returned from this callback.

Customisation

PropertyTypeDescription
likeIconButtonLMButtonPropsCustom like icon button
likeTextButtonLMButtonPropsCustom like text button
onTapViewMoreFunctionCallback function to be executed on click of view more replies
commentMaxLinesnumberMaximum lines of comment to be shown
menuIconLMButtonPropsCustom menu icon button
commentUserNameStyleTextStyleCustom style for user name text
commentContentPropsLMTextPropsCustom props for comment item
showMorePropsLMTextPropsCustom props for see more text
replyTextPropsLMButtonPropsCustom props for reply text
repliesCountTextStyleTextStyleCustom props for comment text count
timeStampStyleTextStyleCustom props for time stamp text
viewMoreRepliesPropsLMTextPropsCustom props for View more text
onTapRepliesFunctionCustom callback to be executed on click of Replies text
isRepliesVisiblebooleanBoolean to decide whether replies will be visible or not
onCommentOverflowMenuClickFunctionCustom callback on click of menu icon & handles the position and visibility of the modal
hideThreeDotsMenubooleanBoolean to hide/show three dots