diff --git a/React/Views/RCTBorderDrawing.m b/React/Views/RCTBorderDrawing.m index 7674f1d154f8ef..8a463b2f0b4d24 100644 --- a/React/Views/RCTBorderDrawing.m +++ b/React/Views/RCTBorderDrawing.m @@ -225,9 +225,9 @@ static CGContextRef RCTUIGraphicsBeginImageContext(CGSize size, CGColorRef backg }; const CGSize size = makeStretchable ? (CGSize){ - // 1pt for the middle stretchable area along each axis - edgeInsets.left + 1 + edgeInsets.right, - edgeInsets.top + 1 + edgeInsets.bottom + // 2pt for the middle stretchable area along each axis + edgeInsets.left + 2 + edgeInsets.right, + edgeInsets.top + 2 + edgeInsets.bottom } : viewSize; CGContextRef ctx = RCTUIGraphicsBeginImageContext(size, backgroundColor, hasCornerRadii, drawToEdge); @@ -385,7 +385,7 @@ static CGContextRef RCTUIGraphicsBeginImageContext(CGSize size, CGColorRef backg UIGraphicsEndImageContext(); if (makeStretchable) { - image = [image resizableImageWithCapInsets:edgeInsets]; + image = [image resizableImageWithCapInsets:edgeInsets resizingMode: UIImageResizingModeStretch]; } return image;