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

flexDirection: row not working #3

Open
okaybeydanol opened this issue Jun 23, 2022 · 3 comments
Open

flexDirection: row not working #3

okaybeydanol opened this issue Jun 23, 2022 · 3 comments

Comments

@okaybeydanol
Copy link

<View style={{flex: 1, flexDirection: 'row', flexWrap: 'wrap'}}>
  <SpeedyList
    contentStyle={{
      flex: 1,
      flexDirection: 'row',
      flexWrap: 'wrap',
      marginLeft: 16,
    }}
    items={filteredProducts}
    itemRenderer={itemRenderer}
    itemHeight={220}
    itemKey={'product_guid'}
  />
</View>

It doesn't work I'm trying to make numberOfClums={3} like how do I do it? can you give an example?

@FSPinho
Copy link
Owner

FSPinho commented Jun 26, 2022

Hi @okaybeydanol.
I've just added support for multiple columns in the newest version. Let me know if that works for you.

E.g.:

<SpeedyList
    columns={2}
    items={filteredProducts}
    itemRenderer={itemRenderer}
    itemHeight={220}
    itemKey={'product_guid'}
/>

@okaybeydanol
Copy link
Author

okaybeydanol commented Jun 27, 2022

It worked very well, but the place of the last 2 items at the end of the page has shifted

Untitled

@FSPinho
Copy link
Owner

FSPinho commented Jul 2, 2022

Hi @okaybeydanol.

Thanks for catching this issue. I've just fixed, and also added options to customize the row and column wrappers. Let me know if you find more improvements.

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

2 participants