React Native FlatList separator between columns

前端 未结 6 1563
不思量自难忘°
不思量自难忘° 2021-02-18 20:57

I have a FlatList with multiple columns:

             


        
6条回答
  •  北荒
    北荒 (楼主)
    2021-02-18 21:25

    you can just add if else condition inside renderItems and check the index modulus to add separator.. I just use this one and everything works great.

    something like :-

    _renderItem = ({item,index}) => {
       return(
          
             {item.key}
          
       )
    }

    hope this will help you.

提交回复
热议问题