Skip to content

Commit

Permalink
fix ListView to work with Native Animated.event
Browse files Browse the repository at this point in the history
Summary:
suggested by janicduplessis in facebook#9253 (comment)
I'm using this in my own apps
Closes facebook#11339

Differential Revision: D4325343

fbshipit-source-id: f1da26a2107093865f04e1d81245b33482776001
  • Loading branch information
nihgwu authored and Facebook Github Bot committed Dec 14, 2016
1 parent d926aec commit f8f70d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Libraries/CustomComponents/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ var ListView = React.createClass({
}
},

getScrollableNode: function() {
if (this._scrollComponent && this._scrollComponent.getScrollableNode) {
return this._scrollComponent.getScrollableNode();
} else {
return ReactNative.findNodeHandle(this._scrollComponent);
}
},

/**
* Scrolls to a given x, y offset, either immediately or with a smooth animation.
*
Expand Down

0 comments on commit f8f70d2

Please sign in to comment.