Skip to main content

Comment View

Overview​

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

GitHub File

LMFeedPostDetailCommentHeaderView

Styling Customisation​

These customisations can be set by calling the setPostDetailStyles and setting the commentItemStyle property through the STYLES class

PropertyTypeDescriptionOptional
onTapViewMore() => voidCallback when "View More" is tapped✔
commentUserNameStyleTextStyleStyle for comment username✔
commentContentPropsLMTextPropsProps for the comment content✔
replyTextPropsReplyTextPropsProps for the reply button✔
repliesCountTextStyleTextStyleStyle for the replies count text✔
timeStampStyleTextStyleStyle for the timestamp✔
viewMoreRepliesPropsLMTextPropsProps for "View More Replies" text✔
onTapReplies() => voidCallback when replies are tapped✔

replyTextProps​

PropertyTypeDescriptionOptional
textLMTextPropsProps for the reply text✔
iconLMIconPropsProps for the reply icon✔
onTap(value?: any) => voidCallback when reply is tapped✔
placement| "start" | "end"Placement of reply button✔
buttonStyleViewStyleStyle for the reply button✔
isClickablebooleanIf the reply button is clickable✔

Usage Example​

import { STYLES } from "@likeminds.community/feed-rn-core"

STYLES.setPostDetailStyles({
commentItemStyle: {
commentContentProps: {
textStyle: {
color: 'blue',
fontStyle: 'italic'
},
},
commentUserNameStyle: {
fontSize: 16
},
repliesCountTextStyle: {
fontWeight: 'bold'
}
}
})