We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e5ce9 commit 72e6818Copy full SHA for 72e6818
src/collectionview/collectionview.ios.ts
@@ -365,6 +365,9 @@ export class CollectionView extends CollectionViewBase {
365
});
366
367
const layoutView = this.nativeViewProtected.collectionViewLayout;
368
+ if (!layoutView) {
369
+ return;
370
+ }
371
if ((layoutView instanceof UICollectionViewFlowLayout && this._effectiveColWidth) || this._effectiveRowHeight) {
372
// @ts-ignore
373
layoutView.estimatedItemSize = layoutView.itemSize = CGSizeMake(layout.toDeviceIndependentPixels(this._effectiveColWidth), layout.toDeviceIndependentPixels(this._effectiveRowHeight));
0 commit comments