📌  相关文章
📜  flatlist 最后一项第 2 列 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:44.595000             🧑  作者: Mango

代码示例1
for your case use flex: 0.5 on the item container

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

///on flatlist
columnWrapperStyle={{
     flex: 1,
     justifyContent: 'space-evenly',
}