Skip to content

Commit

Permalink
ListViewMock keys naming improved
Browse files Browse the repository at this point in the history
  • Loading branch information
tszajna0 committed Jun 2, 2017
1 parent 2c593d8 commit 0de7842
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/Lists/ListView/__mocks__/ListViewMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ class ListViewMock extends React.Component {
const rowIDs = allRowIDs[sectionIdx];
for (let rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) {
const rowID = rowIDs[rowIdx];
// Row IDs are only unique in a section
rows.push(
<StaticRenderer
key={'r_' + sectionID + '_' + rowID}
key={'section_' + sectionID + '_row_' + rowID}
shouldUpdate={true}
render={this.props.renderRow.bind(
null,
Expand Down

0 comments on commit 0de7842

Please sign in to comment.