Skip to content

Commit

Permalink
Merge branch 'documentation' into release-1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ECorreia45 committed May 30, 2020
2 parents 95247f7 + f4cb110 commit c8752bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ return (
<ul>
<FlatList
list={this.props.people}
renderItem={this.renderPerson}/>
renderItem={this.renderPerson}
renderWhenEmpty={() => <div>List is empty!</div>}
sortBy={["firstName", {by: "lastName", descending: true}]}
groupBy={person => person.info.age > 18 ? 'Over 18' : 'Under 18'}
/>
</ul>
)
```
Expand Down

0 comments on commit c8752bc

Please sign in to comment.