diff --git a/Libraries/CustomComponents/ListView/ListView.js b/Libraries/CustomComponents/ListView/ListView.js index fa29da5d8..5b1ef4db0 100644 --- a/Libraries/CustomComponents/ListView/ListView.js +++ b/Libraries/CustomComponents/ListView/ListView.js @@ -436,6 +436,9 @@ var ListView = React.createClass({ height : width; this._updateVisibleRows(); this._renderMoreRowsIfNeeded(); + if (this.props.onContentSizeChange) { + this.props.onContentSizeChange(width, height); + } }, _onLayout: function(event) { @@ -444,6 +447,9 @@ var ListView = React.createClass({ height : width; this._updateVisibleRows(); this._renderMoreRowsIfNeeded(); + if (this.props.onLayout) { + this.props.onLayout(event); + } }, _setScrollVisibleLength: function(left, top, width, height) {