question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does SectionList support multiple columns?

See original GitHub issue

Description

I try to build a sectioned list with multiple columns on a row using ListView and flex-wrap (following the UIExplorer example). The problem is that both section header and list header component are positioned as “columns” among the normal cells, which breaks the layout.

I see that the new FlatList has a numColumns props but the new SectionList doesn’t.

Questions

How to implement a multi-column sectioned list in React Native? Which component should I use?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
hramoscommented, Apr 14, 2017

This issue looks like a question that would be best asked on StackOverflow.

StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

Will close this as this is really a question that should be asked on StackOverflow.

5reactions
GantMancommented, Sep 3, 2017

@irrigator If you useflexWrap: 'wrap' like we used to have to do on ListViews, it works, but it gives a yellowbox warning about virtual lists not supporting it… but then again… it supports it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native - SectionList numColumns support
Here is my solution to numColumns for SectionList. If you have better let me know please. class Example extends Component { static propTypes ......
Read more >
Multi-column SectionList using FlatList - GitHub
For example, if I had two data to render, I will get two different flatlists and similarly, three flatlists with three data. Can...
Read more >
[Solved]-SectionList on multiple columns React Native-React ...
Coding example for the question SectionList on multiple columns React Native-React Native.
Read more >
SectionList - React Native
SectionList. A performant interface for rendering sectioned lists, supporting the most handy features: Fully cross-platform.
Read more >
Lists - React Native v2
SectionList is a similar to FlatList, but it allows you to render items in ... list horizontally instead of vertically; numColumns - render...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found