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 kelset committed Dec 12, 2018
1 parent 472e978 commit 30c2fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Lists/VirtualizedList.js
Expand Up @@ -933,7 +933,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 30c2fb8

Please sign in to comment.