mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
safety fixes
Reviewed By: nspaun Differential Revision: D2902378 fb-gh-sync-id: da35b6d61e6248e5920eab6f5e53a7ce8deb8e01
This commit is contained in:
parent
184c708b14
commit
4326b01181
@ -230,14 +230,17 @@ var ListView = React.createClass({
|
||||
* Provides a handle to the underlying scroll responder.
|
||||
*/
|
||||
getScrollResponder: function() {
|
||||
return this.refs[SCROLLVIEW_REF].getScrollResponder();
|
||||
return this.refs[SCROLLVIEW_REF] &&
|
||||
this.refs[SCROLLVIEW_REF].getScrollResponder();
|
||||
},
|
||||
|
||||
scrollTo: function(...args) {
|
||||
this.refs[SCROLLVIEW_REF] &&
|
||||
this.refs[SCROLLVIEW_REF].scrollTo(...args);
|
||||
},
|
||||
|
||||
setNativeProps: function(props) {
|
||||
this.refs[SCROLLVIEW_REF] &&
|
||||
this.refs[SCROLLVIEW_REF].setNativeProps(props);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user