Comment.js 570 Bytes
/**
 * Created by mac on 2017/5/13.
 */
import React, {Component} from "react";
import {StyleSheet, View} from "react-native";
import {width} from "../../utils/getSize";
import CommentBlock from "./CommentBlock";

export default class Comment extends Component {
  render() {

    return (
      <View style={styles.container}>
        {
          this.props.data.map((v,i)=><CommentBlock data={v} key={i}/>)
        }
      </View>
    )
  }
}
const styles = StyleSheet.create({
  container: {
    width,
    backgroundColor: 'white',
    paddingHorizontal:15,
  },
});