We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95247f7 + f4cb110 commit c8752bcCopy full SHA for c8752bc
1 file changed
README.md
@@ -68,7 +68,11 @@ return (
68
<ul>
69
<FlatList
70
list={this.props.people}
71
- renderItem={this.renderPerson}/>
+ renderItem={this.renderPerson}
72
+ renderWhenEmpty={() => <div>List is empty!</div>}
73
+ sortBy={["firstName", {by: "lastName", descending: true}]}
74
+ groupBy={person => person.info.age > 18 ? 'Over 18' : 'Under 18'}
75
+ />
76
</ul>
77
)
78
```
0 commit comments