标题有点说明性,但是如何在 react native 中附加卡片并从 JSON 文件添加内容? 这是我正在使用的代码:
<Card style={[styles.card]}>
<Text style={styles.label}>A</Text>
</Card>
<Card style={[styles.card]}>
<Text style={styles.label}>B</Text>
</Card>
<Card style={[styles.card]}>
<Text style={styles.label}>C</Text>
</Card>
<Card style={[styles.card]}>
<Text style={styles.label}>D</Text>
</Card>
我正在尝试将其更改为此,但具有来自 JSON 文件的内容并要附加:
<Card style={[styles.card]}>
<Text style={styles.label}>"JSON CONTENT"</Text>
</Card>