Finish Symbol refactor on Android

This commit is contained in:
Horcrux
2017-01-22 17:57:07 +08:00
parent 1b04e11ca4
commit 8cd78e830e
11 changed files with 165 additions and 120 deletions
+1 -2
View File
@@ -28,13 +28,12 @@
if (template) {
[self beginTransparencyLayer:context];
[self clip:context];
[template mergeProperties:self];
if ([template class] == [RNSVGSymbol class]) {
[template mergeProperties:self];
RNSVGSymbol *symbol = template;
[symbol renderSymbolTo:context width:[self relativeOnWidth:self.width] height:[self relativeOnWidth:self.height]];
} else {
[template mergeProperties:self];
[template renderTo:context];
}