Post Content
Overview
LMPostContent
displays the main content of a post, including text, media, links, and polls.
GitHub File:

Customisation
The STYLES
class allows you to customize the appearance of the LMPostContent
. You can set the styles in postContent
inside of postListStyle
in STYLES
.
Property | Type | Description |
---|---|---|
textStyle | TextStyle | Style applied to the main text content. |
visibleLines | number | Number of visible lines before showing "Show More" option. |
showMoreText | LMTextProps | Props for the "Show More" text component. |
postContentViewStyle | ViewStyle | Style for the overall post content container. |
postTopicStyle | PostTopicStyle | Object containing styles for topic text and its container. |
To see all the properties, visit PostTopicStyle
PostTopicStyle
Property | Type | Description |
---|---|---|
text | TextStyle | Style for the topic text. |
box | ViewStyle | Style for the container around the topic. |
Usage Example
import {STYLES} from "@likeminds.community/feed-rn-core"
STYLES.setPostListStyles({
postContent: {
textStyle: {
fontFamily: "roboto",
fontSize: 16
},
postTopicStyle: {
text: {
color: 'green',
box: {
borderRadius: 6
}
}
}
}
})