Skip to content

Commit 12b0b55

Browse files
committed
fix(collectionview): ios fix for canvas not redrawing
1 parent 1a56f35 commit 12b0b55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/collectionview/index.ios.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,9 @@ export class CollectionView extends CollectionViewBase {
10301030
const cellView: View = cell.view;
10311031
if (!firstRender && cellView['isLayoutRequired']) {
10321032
this.layoutCell(indexPath.row, cell, cellView);
1033-
} else {
1034-
// if the cell view is a canvas we need to ensure redraw is called
1035-
((cellView as ContentView).content || cellView).nativeViewProtected.setNeedsDisplay();
10361033
}
1034+
// if the cell view is a canvas we need to ensure redraw is called
1035+
((cellView as ContentView).content || cellView).nativeViewProtected.setNeedsDisplay();
10371036
return cell;
10381037
}
10391038
collectionViewWillDisplayCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath) {

0 commit comments

Comments
 (0)