React Native FlatList with columns, Last item width

后端 未结 8 1068
北恋
北恋 2020-12-12 23:40

I\'m using a FlatList to show a list of items in two columns



        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 00:12

    for your case use flex: 1/2

    therefore: Your item should have flex of 1/(number of columns) if you have 3 columns your item should have flex:1/3

提交回复
热议问题