From d73f7d3d5ea04421462916f495c60602cdf0a9a6 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 6 Feb 2017 18:32:52 -0800 Subject: [PATCH] RN: Revert ListView Separator Change Reviewed By: sahrens Differential Revision: D4519588 fbshipit-source-id: b339b2a547de0e6d1a687be3d0d0abe8b82f7107 --- Libraries/CustomComponents/ListView/ListView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/CustomComponents/ListView/ListView.js b/Libraries/CustomComponents/ListView/ListView.js index 5922a01cc..42dfa4d09 100644 --- a/Libraries/CustomComponents/ListView/ListView.js +++ b/Libraries/CustomComponents/ListView/ListView.js @@ -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 ||