RN: Revert ListView Separator Change

Reviewed By: sahrens

Differential Revision: D4519588

fbshipit-source-id: b339b2a547de0e6d1a687be3d0d0abe8b82f7107
This commit is contained in:
Tim Yung 2017-02-06 18:32:52 -08:00 committed by Facebook Github Bot
parent 6a8200df95
commit d73f7d3d5e
1 changed files with 1 additions and 2 deletions

View File

@ -466,8 +466,7 @@ var ListView = React.createClass({
totalIndex++;
if (this.props.renderSeparator &&
rowIdx !== rowIDs.length - 1 &&
sectionIdx === allRowIDs.length - 1) {
(rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)) {
var adjacentRowHighlighted =
this.state.highlightedRow.sectionID === sectionID && (
this.state.highlightedRow.rowID === rowID ||