Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class Feedback extends Component {
- constructor(props) {
- super(props);
- this.state = {
- rating: null,
- }
- }
- ratingCompleted(rating) {
- console.log("Rating is: " + rating)
- this.setState({ rating: rating })
- }
- render() {
- return (
- <View style={styles.container}>
- <Card image={{ uri: item.image }}>
- <View style={styles.thumbnailContainer}>
- <Avatar
- small
- rounded
- source={{ uri: item.avatar }}
- onPress={() => {}}
- activeOpacity={0.7}
- />
- <Text style={styles.name}>{item.name}</Text>
- </View>
- <Text style={{ marginBottom: 10, marginTop: 10 }}>
- {item.content}
- </Text>
- </Card>
- <Rating
- showRating
- type="star"
- fractions={1}
- startingValue={3.6}
- readonly
- imageSize={40}
- onFinishRating={this.ratingCompleted}
- style={{ paddingVertical: 10 }}
- />
- </View>
- );
- }
- }
- deskripsi :
- kode ini untuk melihat detail report dan memberikan hasil progress nya melaluin rating / feedback
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement