-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[menu-bar] Patch react-native-svg to support macOS Sonoma (#63)
- Loading branch information
1 parent
cecd25f
commit 5c19469
Showing
4 changed files
with
123 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.mm b/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.mm | ||
index 51fa1ee..b8c1886 100644 | ||
--- a/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.mm | ||
+++ b/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.mm | ||
@@ -293,7 +293,7 @@ - (void)drawRect:(CGRect)rect | ||
_boundingBox = rect; | ||
CGContextRef context = UIGraphicsGetCurrentContext(); | ||
|
||
- [self drawToContext:context withRect:rect]; | ||
+ [self drawToContext:context withRect:[self bounds]]; | ||
} | ||
|
||
- (RNSVGPlatformView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters