CommentItem

CommentItem is a pure NativeBase component. CommentItem display user’s feedback when user leave the comment

Usage

let item = {
    source: require("@assets/images/profile-3.jpg"),
    name: "Grigoriy Kozhukhov",
    rate: 4,
    date: "Jun 2018",
    title: "Nice Place",
    comment: "Lorem ipsum dolor purus in efficitur aliquam, enim enim porttitor lacus, ut sollicitudin nibh neque in metus. adipiscing elit. Aliqam at turpis orci. Mauris nisl, in mollis acu  tincidunt. neque nec turpis aliquet, ut ornare velit molestie. "
}   

<CommentItem
    style={{ marginTop: 10 }}
    image={item.source}
    name={item.name}
    rate={item.rate}
    date={item.date}
    title={item.title}
    comment={item.comment}
/>

Props

image

Type: String | Required
Path of image profile

name

Type: String
Name of user display

rate

Type: Number
Number of rating

date

Type: String
Date create comment

title

Type: String
The title of comment

comment

Type: String
The content of comment

style

Type: StyleProp
Customize CSS style ViewStyle