【发布时间】:2021-11-21 21:08:01
【问题描述】:
<View style={{ flexDirection: 'row' }}>
<AntDesign name="flag" size={12} color="black" style={{ marginTop: 3, marginRight: 10 }} />
<Text style={styles.H1}>{item.name}</Text>
<Text style={styles.H2}>{item.location}</Text>
</View>
item 正在正确解析 json 名称。但我在 {flag:'', country:''}
位置有两个项目如何在上面的代码中解析这两项。
【问题讨论】: