[].map(()=>{
})
{this.state.dataSource.map((dataSource,index)=> {
return(
<View style = {styles.view1}>
<TouchableHighlight style = {styles.view1}
color = "black"
onPress={() => Alert.alert('点击了录播图' + index)}
//点击后的背景颜色
underlayColor="#1FB579"
>
<Text>{dataSource.title}</Text>
</TouchableHighlight>
</View>
);
})}
网友评论