Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'boilerplate-update'
Browse files Browse the repository at this point in the history
  • Loading branch information
peat-psuwit committed Nov 14, 2018
2 parents 933ba27 + d7231fc commit 68d26ae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion screens/AlbumDetailScreen/CommentEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ import {
Text,
View,
} from 'react-native';
import { Rating } from 'react-native-ratings';

function CommentEntry({ comment }) {
return (
<View style={styles.container}>
{typeof comment.rating === 'number'
? (
<Rating
readonly
type="star"
imageSize={20}
startingValue={comment.rating}
/>
) : null
}

<Text style={styles.comment}>{comment.comment}</Text>
<Text style={styles.metadata}>
<Text style={styles.bold}>From: </Text>
Expand Down Expand Up @@ -39,4 +51,4 @@ const styles = StyleSheet.create({
},
});

export default CommentEntry;
export default CommentEntry;

0 comments on commit 68d26ae

Please sign in to comment.