diff --git a/Libraries/Image/RCTImageUtils.m b/Libraries/Image/RCTImageUtils.m index edc1cb926..5aeefad12 100644 --- a/Libraries/Image/RCTImageUtils.m +++ b/Libraries/Image/RCTImageUtils.m @@ -316,7 +316,8 @@ UIImage *__nullable RCTTransformImage(UIImage *image, return nil; } - UIGraphicsBeginImageContextWithOptions(destSize, NO, destScale); + BOOL opaque = !RCTImageHasAlpha(image.CGImage); + UIGraphicsBeginImageContextWithOptions(destSize, opaque, destScale); CGContextRef currentContext = UIGraphicsGetCurrentContext(); CGContextConcatCTM(currentContext, transform); [image drawAtPoint:CGPointZero];