diff --git a/apple/RNSVGRenderable.mm b/apple/RNSVGRenderable.mm index ca9a82447..b245afd33 100644 --- a/apple/RNSVGRenderable.mm +++ b/apple/RNSVGRenderable.mm @@ -475,7 +475,9 @@ - (void)renderLayerTo:(CGContextRef)context rect:(CGRect)rect CGPoint mid = CGPointMake(CGRectGetMidX(pathBounds), CGRectGetMidY(pathBounds)); CGPoint center = CGPointApplyAffineTransform(mid, matrix); - self.bounds = bounds; + if (!isnan(bounds.size.width) && !isnan(bounds.size.height)) { + self.bounds = bounds; + } if (!isnan(center.x) && !isnan(center.y)) { self.center = center; }