mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
Finish Symbol refactor on Android
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user