react-native-sglistview icon indicating copy to clipboard operation
react-native-sglistview copied to clipboard

Rest of the cells/rows wont render when using a grid style

Open jjdp opened this issue 8 years ago • 5 comments

<SGListView
  stickyHeaderIndices={[]}
  onEndReached={() => {}}
  onEndReachedThreshold={1}
  pageSize={1}
  initialListSize={10}
  contentContainerStyle={styles.listView}
  dataSource={this.state.dataSource}
  renderRow={this._renderRow}

with this style:

listView: {
    justifyContent: 'flex-start',
    flexDirection: 'row',
    flexWrap: 'wrap',
    paddingTop: 52,
  },

the rest of the rows won't render. In my case the images:

1

jjdp avatar Oct 20 '16 07:10 jjdp

I see this too, @jjdp did you find any workaround?

adbl avatar Jan 06 '17 01:01 adbl

sadly no. i am just using the default listview for now.

jjdp avatar Jan 06 '17 03:01 jjdp

Also seeing this issue.

booboothefool avatar Jan 28 '17 01:01 booboothefool

Try this:

  grid: {
    flexDirection: 'row',
    flexWrap: 'wrap',
    alignItems: 'flex-start',
    overflow: 'hidden',
  },

Use alignItems: 'flex-start' instead of justifyContent: 'flex-start'.

superandrew213 avatar Jan 28 '17 06:01 superandrew213

Thanks @superandrew213. That did the trick for my grid.

booboothefool avatar Feb 23 '17 01:02 booboothefool