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 коммит произвёл Facebook Github Bot
Родитель e8ec1cb16a
Коммит 604bcfa4a8
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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() {