diff --git a/src/SortableList.js b/src/SortableList.js index 3d3ff9f..4dd876b 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -36,6 +36,7 @@ export default class SortableList extends Component { onChangeOrder: PropTypes.func, onActivateRow: PropTypes.func, + onLayout: PropTypes.func, onReleaseRow: PropTypes.func, }; @@ -338,7 +339,11 @@ export default class SortableList extends Component { contentHeight, contentWidth, }, () => { - this.setState({animated: true}); + this.setState({animated: true}, () => { + if (this.props.onLayout) { + this.props.onLayout(); + } + }); }); }); });