Horizontal scroll some part of ListView column

前端 未结 1 1021
不思量自难忘°
不思量自难忘° 2021-02-13 16:25

I want to horizontally scroll some part of a ListView in React Native.

How can I fix the position of first column and make other column horizontally sc

1条回答
  •  伪装坚强ぢ
    2021-02-13 17:24

    The renderRow of ListView should have a Text followed by a horizontal ScrollView.

    
    
    renderRow (rowData) {
      return (
      
        rowData.field1
        
          rowData.field2
          rowData.field3
          rowData.field4
        
      
    }
    

    Note the horizontal=true prop in ScrollView which will make it happen.

    0 讨论(0)
提交回复
热议问题