mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 08:22:23 +00:00
fix #115
This commit is contained in:
@@ -28,9 +28,8 @@
|
||||
|
||||
- (void)renderLayerTo:(CGContextRef)context
|
||||
{
|
||||
if (!self.d) {
|
||||
self.d = [self getPath:context];;
|
||||
}
|
||||
// todo: add detection if path has changed since last update.
|
||||
self.d = [self getPath:context];
|
||||
CGPathRef path = self.d;
|
||||
if ((!self.fill && !self.stroke) || !path) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user