Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jjdp opened this issue Oct 20, 2016 · 5 comments
Open

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

jjdp opened this issue Oct 20, 2016 · 5 comments

Comments

@jjdp
Copy link

jjdp commented Oct 20, 2016

<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

@adbl
Copy link

adbl commented Jan 6, 2017

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

@jjdp
Copy link
Author

jjdp commented Jan 6, 2017

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

@booboothefool
Copy link

Also seeing this issue.

@superandrew213
Copy link

superandrew213 commented Jan 28, 2017

Try this:

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

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

@booboothefool
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants