Skip to content

Commit

Permalink
fix(Error): fix for rowRef[index].ref. null
Browse files Browse the repository at this point in the history
fix(Error): fix for rowRef[index].ref. null
  • Loading branch information
st0ffern authored Aug 23, 2017
2 parents 897197c + 03bdbb6 commit 7b0c8ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OptimizedFlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default class OptimizedFlatList extends React.PureComponent {
}

_updateItem(index, visibility){
if (!this.rowRefs[index].ref) {
return false;
}
this.rowRefs[index].ref.setVisibility(visibility)
return visibility
}
Expand Down

0 comments on commit 7b0c8ac

Please sign in to comment.