Texts component beside each in Flatlist react native

假装没事ソ 提交于 2021-02-11 14:39:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!