PostListItem

Usage

let item = {
    image: require("@assets/images/trip-1.jpg"),
    title: "Top 15 Things Must To Do",
    description: "Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui Donec rutrum congue leo eget malesuada. Vivamus suscipit tortor eget felis porttitor volutpat. Sed porttitor lectus nibh. Nulla quis lorem ut libero malesuada feugiat. Quisque velit nisi, pretium ut lacinia in, elementum id enim.",
    date: "6 days ago"
}

<PostListItem
    image={item.image}    
    title={item.title}   
    description={item.description}    
    date={item.date}    
    style={{ marginLeft: 20 }}
/>

Props

style

Type: StyleProp
Customize CSS style ViewStyle

image

Type: String | Required
Path of image display on card

title

Type: String | Required
Title of post item
Pricing of item include unit

description

Type: String
Description of post item

date

Type: String
Date time created

onPress

Type: Function
Function to execute on press post item