diff --git a/index.js b/index.js index 4b91802..bdd1ad3 100644 --- a/index.js +++ b/index.js @@ -288,7 +288,7 @@ class SortableGrid extends Component { } else { this.blockWidth = nativeEvent.layout.width / this.itemsPerRow - this.blockHeight = this.blockWidth + this.blockHeight = this.props.itemHeight || this.blockWidth } if (this.state.gridLayout != nativeEvent.layout) { this.setState({