Skip to content

Commit

Permalink
Guard against trying to scroll before section list has been measured.
Browse files Browse the repository at this point in the history
  • Loading branch information
drtangible committed May 18, 2016
1 parent eba5659 commit 6ff1329
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/SectionList.js
Expand Up @@ -49,6 +49,11 @@ class SectionList extends Component {
//UIManager.findSubviewIn(e.target, rect, viewTag => {
//this.onSectionSelect(view, true);
//})

if (!this.measure) {
return;
}

let targetY = ev.pageY;
const { y, height } = this.measure;
if(!y || targetY < y){
Expand Down

0 comments on commit 6ff1329

Please sign in to comment.