diff --git a/Libraries/Components/ScrollView/RecyclerViewBackedScrollView.android.js b/Libraries/Components/ScrollView/RecyclerViewBackedScrollView.android.js index 198a91350..f2999b3b4 100644 --- a/Libraries/Components/ScrollView/RecyclerViewBackedScrollView.android.js +++ b/Libraries/Components/ScrollView/RecyclerViewBackedScrollView.android.js @@ -12,6 +12,8 @@ var ScrollView = require('ScrollView'); var requireNativeComponent = require('requireNativeComponent'); +var INNERVIEW = 'InnerView'; + /** * Wrapper around android native recycler view. * @@ -63,6 +65,10 @@ var RecyclerViewBackedScrollView = React.createClass({ return this; }, + getInnerViewNode: function(): any { + return React.findNodeHandle(this.refs[INNERVIEW]); + }, + render: function() { var props = { ...this.props, @@ -81,6 +87,7 @@ var RecyclerViewBackedScrollView = React.createClass({ onResponderReject: this.scrollResponderHandleResponderReject, onScroll: this.scrollResponderHandleScroll, style: ([{flex: 1}, this.props.style]: ?Array), + ref: INNERVIEW, }; return (