diff --git a/ios/Elements/RNSVGSymbol.m b/ios/Elements/RNSVGSymbol.m index 125e583a..305e2f72 100644 --- a/ios/Elements/RNSVGSymbol.m +++ b/ios/Elements/RNSVGSymbol.m @@ -80,13 +80,14 @@ - (void)renderSymbolTo:(CGContextRef)context width:(CGFloat)width height:(CGFloat)height { if (self.align) { - CGRect eRect = CGRectMake([self getContextLeft], [self getContextTop], width, height); + CGRect eRect = CGRectMake(0, 0, width, height); CGAffineTransform viewBoxTransform = [RNSVGViewBox getTransform:CGRectMake(self.minX, self.minY, self.vbWidth, self.vbHeight) eRect:eRect align:self.align meetOrSlice:self.meetOrSlice fromSymbol:YES]; + CGContextConcatCTM(context, viewBoxTransform); } [self renderGroupTo:context];