React Native FlatList separator between columns

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

I have a FlatList with multiple columns:

             


        
6条回答
  •  隐瞒了意图╮
    2021-02-18 21:08

    You can provide a margin for each item and a negative margin for the container. This is a very common trick for CSS flex layout.

      renderItem = (sale) => {
        const {item, index} = sale;
        return (
            ### LOOK AT HERE ###
          
        )
      };
    
      render() {
        return (
        
          
        
        )
      }
    

    Click here to see my work

提交回复
热议问题