fix(ios): image with alpha resize (#9386)

closes #9385
This commit is contained in:
Osei Fortune
2021-05-10 22:22:08 -04:00
committed by GitHub
parent 686522d8c6
commit f380782766

View File

@@ -340,7 +340,8 @@ export class ImageSource implements ImageSourceDefinition {
const dim = getScaledDimensions(size.width, size.height, maxSize);
const newSize: CGSize = CGSizeMake(dim.width, dim.height);
UIGraphicsBeginImageContextWithOptions(newSize, true, this.ios.scale);
UIGraphicsBeginImageContextWithOptions(newSize, options?.opaque ?? false, this.ios.scale);
this.ios.drawInRect(CGRectMake(0, 0, newSize.width, newSize.height));
const resizedImage = UIGraphicsGetImageFromCurrentImageContext();