show 2 items per row[react native]

后端 未结 5 1220
借酒劲吻你
借酒劲吻你 2020-12-15 17:40

I am learning react native and in all the tutorials i see ListView has been used with only 1 items per row. I have not used ListView, though. I have only 6 items that has to

5条回答
  •  遥遥无期
    2020-12-15 18:19

    You can use a FlatList and set to it the numColumns={2} prop and style={{ flexDirection: 'column' }}. In my case I'm working with 3 cols: FlatList with numColumns={3}

提交回复
热议问题