Skip to content

Commit

Permalink
Fix ListEmptyComponent is rendered upside down when using inverted fl…
Browse files Browse the repository at this point in the history
…ag. (#21496)

Summary:
Fix ListEmptyComponent is rendered upside down when using inverted flag.

Fixes #21196
Pull Request resolved: #21496

Differential Revision: D13334437

Pulled By: hramos

fbshipit-source-id: b34a9a0a153862d3d5dbe410ab0a6c66a8cfcffd
  • Loading branch information
hyochan authored and facebook-github-bot committed Dec 5, 2018
1 parent 7e4f92b commit 198eb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
: this.props.inverted,
stickyHeaderIndices,
};
if (inversionStyle) {
if (inversionStyle && itemCount !== 0) {
/* $FlowFixMe(>=0.70.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.70 was deployed. To see the error delete
* this comment and run Flow. */
Expand Down

0 comments on commit 198eb02

Please sign in to comment.