From 86ff0e163f7417d063924d5ecaf8133b8fb2cc0c Mon Sep 17 00:00:00 2001 From: Pierre Reimertz Date: Mon, 9 Apr 2018 03:12:53 +0200 Subject: [PATCH] fixes itemHeight when itenWidth is not set --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({