var names = ['Alice', 'Emily', 'Kate'];
names.map(function (name) {
return <div>Hello, {name}!</div>
})
// cell的下半部分
renderCellBottomView(rowData){
return rowData.map((item, index) => {
return(
<View style={styles.cellBottomStyle_goods} key={index}>
<TouchableOpacity
onPress={() => {alert("点击了商品")}}>
<View style={styles.goodsImgStyle}>
<Image
style={{width:85, height:61}}
source={{uri: item.picurl}}/>
</View>
</TouchableOpacity>
<View style={{width:85, height:9.5, marginTop:5, alignItems:"center"}}>
<Text style={{color:"#F96547", fontSize:Size(14)}}>¥{item.price}</Text>
</View>
</View>
)
})
}
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。