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.

[ListView] Render empty list component

See original GitHub issue

I read the docs and did not find something like renderEmptyListViewComponent in the current ListView API. Of corse i can check if ListView is empty by getting getRowCount() and do whatever i want but it will be awesome to have such method to render empty component along with existing renderHeader and renderFooter.

I understand that it could be specific case but if not i will implement such method and make PR.

<ListView
  dataSource={this.state.dataSource}
  renderHeader={() => <Header />}
  renderFooter={() => <Footer />}
  ...
  renderEmptyListComponent={() => <EmptyListMessage />}
/>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
Naoto-Idacommented, Dec 11, 2017

@Rewieer Maybe take the time to search the docs?

here.

2reactions
ghostcommented, Jun 13, 2017

@hose314 @Naoto-Ida Since 0.45, VirtualizedList, FlatList and SectionList got the ListEmptyComponent prop.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show empty list widget with lazy loading in flutter
When I scroll and when the list empty I want to show empty list widget but in my case as soon as I...
Read more >
React Native Show Message for empty FlatList
This will show the error message which you have set for the empty list but if the DataSource has some value it will...
Read more >
Element: <oj-list-view> - Oracle
Description: The JET ListView enhances a HTML list element into a ... If there's no content specified, then an empty list is rendered....
Read more >
listview Message if Empty - Mendix Marketplace
Insert a classname to select a listview. Configure a message to show if the listview is empty. Boolean to toggle show / hide...
Read more >
How to show an "Empty list view" template - Telerik
Is that correct? In such case please use a client side script - all you need to do is to hook up to...
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