arashgoul
arashgoul

Reputation: 11

How items are placed next to each other

I wrote the following code with react-native for API

renderItem={({item})=><Text style={styles.item}> {item.title.rendered + item.excerpt.rendered } </Text>}

But I want the second item to be below the first item Thank you for guiding me

Upvotes: 0

Views: 37

Answers (1)

yoann84
yoann84

Reputation: 830

You just have to make a View and put your two elements in Text inside.

<View>
 <Text>{item.title.rendered </Text>
 <Text> {item.excerpt.rendered} </Text>
</View>

Upvotes: 2

Related Questions