Skip to content

Commit c8752bc

Browse files
author
ecorreia
committed
Merge branch 'documentation' into release-1.4.2
2 parents 95247f7 + f4cb110 commit c8752bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ return (
6868
<ul>
6969
<FlatList
7070
list={this.props.people}
71-
renderItem={this.renderPerson}/>
71+
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+
/>
7276
</ul>
7377
)
7478
```

0 commit comments

Comments
 (0)