mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
add viewBox support for android
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
[self clip:context];
|
||||
|
||||
for (RNSVGNode *node in self.subviews) {
|
||||
[node inheritProperties:self inheritedList:self.propList];
|
||||
[node mergeProperties:self mergeList:self.propList inherited:YES];
|
||||
[node renderTo:context];
|
||||
|
||||
if (node.responsible && !svg.responsible) {
|
||||
@@ -78,11 +78,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)inheritProperties:(__kindof RNSVGNode *)parent inheritedList:(NSArray<NSString *> *)inheritedList;
|
||||
{
|
||||
for (NSString *key in inheritedList) {
|
||||
[self inheritProperty:parent propName:key];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user