<aside> 📍 src/components/PostEntry.jsx

</aside>


Functions

getCustomStyle

Parameters:

Action:

Uses function createStyles from styles/base.js to create a styleSheet for the article wrapper and article.

Returns:


Components

PostEntry

PostEntry without Image

PostEntry without Image

PostEntry with co-authors

PostEntry with co-authors

PostEntry with Image

PostEntry with Image

Props:

Global Variables:

Local Variables:

Purpose:

PostEntry is a component used to construct previews of an article. The component is composed of TouchableOpacity, which handles navigation, and contents of the article.

PostEntry presents the article image with styles styles.articleImage, article title with styles styles.title and parsed by removeHTMLTags from src/utils/parser, article excerpt defined by function formatExcerpt from src/utils/parser, and date & author of article using getCoAuthors from src/utils/parser.