diff --git a/Libraries/CustomComponents/ListView/ListView.js b/Libraries/CustomComponents/ListView/ListView.js index c10717b5a..b4931fedb 100644 --- a/Libraries/CustomComponents/ListView/ListView.js +++ b/Libraries/CustomComponents/ListView/ListView.js @@ -231,14 +231,18 @@ var ListView = React.createClass({ /** * Provides a handle to the underlying scroll responder. + * Note that the view in `SCROLLVIEW_REF` may not be a `ScrollView`, so we + * need to check that it responds to `getScrollResponder` before calling it. */ getScrollResponder: function() { - return this.refs[SCROLLVIEW_REF] && + return this.refs[SCROLLVIEW_REF] && + this.refs[SCROLLVIEW_REF].getScrollResponder && this.refs[SCROLLVIEW_REF].getScrollResponder(); }, scrollTo: function(...args) { - this.refs[SCROLLVIEW_REF] && + this.refs[SCROLLVIEW_REF] && + this.refs[SCROLLVIEW_REF].scrollTo && this.refs[SCROLLVIEW_REF].scrollTo(...args); },