0
点赞
收藏
分享

微信扫一扫

react native x循环

林塬 2022-07-14 阅读 52


{
list.activityList.map((n, m) => {
return (
n.activityType == 1 ?
<Text style={style.seconds}>秒</Text>
:
n.activityType == 2 ?
<Text style={style.keep}>保</Text>
:
n.activityType == 3 ?
<Text style={style.very}>特</Text>
:
null
);
})
}

举报

相关推荐

0 条评论