Revert D8683555: [react-native][PR] fix: account for ListHeaderComponent length when calculating offset…

Differential Revision:
D8683555

Original commit changeset: 05df7b79c16e

fbshipit-source-id: 6deb14b99fe04e67e264455ff92a5d8c1c2dd406
This commit is contained in:
Konstantin Raev
2018-07-06 19:21:16 -07:00
committed by Facebook Github Bot
parent e8ec1cb16a
commit 604bcfa4a8

View File

@@ -1217,9 +1217,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
}
_selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number {
return (
(!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength
);
return !this.props.horizontal ? metrics.y : metrics.x;
}
_maybeCallOnEndReached() {