mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 00:12:21 +00:00
Merge pull request #1035 from Godblk/pre_fix
[ios] Fix #999, crash on zero sized images
This commit is contained in:
@@ -110,6 +110,9 @@
|
||||
|
||||
- (void)renderLayerTo:(CGContextRef)context rect:(CGRect)rect
|
||||
{
|
||||
if (CGSizeEqualToSize(CGSizeZero, _imageSize)) {
|
||||
return;
|
||||
}
|
||||
CGContextSaveGState(context);
|
||||
|
||||
// add hit area
|
||||
|
||||
Reference in New Issue
Block a user