fix(ios): ListViewCell.initWithEmptyBackground (#8985)

This commit is contained in:
Nathan Walker
2020-11-04 09:02:34 -08:00
parent e4de5fcdae
commit 4fef132dea

View File

@@ -27,7 +27,7 @@ class ListViewCell extends UITableViewCell {
public static initWithEmptyBackground(): ListViewCell {
const cell = <ListViewCell>ListViewCell.new();
// Clear background by default - this will make cells transparent
cell.backgroundColor = null;
cell.backgroundColor = UIColor.clearColor;
return cell;
}
@@ -35,7 +35,7 @@ class ListViewCell extends UITableViewCell {
initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this {
const cell = <this>super.initWithStyleReuseIdentifier(style, reuseIdentifier);
// Clear background by default - this will make cells transparent
cell.backgroundColor = null;
cell.backgroundColor = UIColor.clearColor;
return cell;
}