Skip to content

Commit 2bc32da

Browse files
committed
fix(ios): correctly redraw Canvas on cell reuse
1 parent 16b476c commit 2bc32da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/collectionview/index.ios.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,9 @@ export class CollectionView extends CollectionViewBase {
10001000
const cellView: View = cell.view;
10011001
if (!firstRender && cellView['isLayoutRequired']) {
10021002
this.layoutCell(indexPath.row, cell, cellView);
1003+
} else {
1004+
// if the cell view is a canvas we need to ensure redraw is called
1005+
((cellView as ContentView).content || cellView).nativeViewProtected.setNeedsDisplay();
10031006
}
10041007
return cell;
10051008
}

0 commit comments

Comments
 (0)