问题
I have an array every item in the array have a text and button URL I want to add this texts beside each other Using flatlist this is my code
<FlatList
data={data.ayahs}
keyExtractor={(item, index) => index.toString()}
numColumns= '10'
columnWrapperStyle={{ flexWrap: 'wrap', flex: 1}}
renderItem={this._renderItem.bind(this)}
contentContainerStyle= {{justifyContent: 'center'}}
/>
Actual behavior
Expected behavior all texts beside each other
It's possible to do that with flatlist?
来源:https://stackoverflow.com/questions/50637398/texts-component-beside-each-in-flatlist-react-native