import React, { Component } from "react" import { StyleSheet, Text, View } from "react-native" import { unitWidth, unitHeight } from "../../utils/AdapterUtil"; import AntDesign from "react-native-vector-icons/AntDesign" export default class Icon extends Component { render() { let { IconList } = this.props return ( { IconList.map(item => { return ( {item} ) }) } ) } } const styles = StyleSheet.create({ iconArea: { width: "100%", height: unitHeight * 280, flexDirection: "row", justifyContent: "space-around", paddingLeft: unitWidth * 20, paddingRight: unitWidth * 20 }, iconItem: { flex: 1, height: unitHeight * 280, borderStyle: "dashed", borderWidth: 1, borderColor: "#ccc", alignItems: "center", justifyContent: "space-between", paddingTop: unitHeight * 57, paddingBottom: unitHeight * 20, marginLeft: unitWidth * 10, marginRight: unitWidth * 10 }, icon: { width: unitWidth * 118, height: unitWidth * 118, backgroundColor: "#FB7E90", justifyContent: "center", alignItems: "center", borderRadius: unitWidth * 118 } })