mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 01:00:43 +00:00
fix: macOS new architecture build (#2341)
# Summary Based on recommendations from this [proposition](https://github.com/software-mansion/react-native-svg/issues/2192#issuecomment-2177330499) and added some changes now we can build macOS using the new architecture. ## Compatibility | OS | Implemented | | ------- | :---------: | | macOS | ✅ | --------- Co-authored-by: Maciej Stosio <maciekstosio@users.noreply.github.com>
This commit is contained in:
@@ -58,9 +58,9 @@ using namespace facebook::react;
|
||||
|
||||
- (BOOL)isSimpleClipPath
|
||||
{
|
||||
NSArray<RNSVGView *> *children = self.subviews;
|
||||
NSArray<RNSVGPlatformView *> *children = self.subviews;
|
||||
if (children.count == 1) {
|
||||
RNSVGView *child = children[0];
|
||||
RNSVGPlatformView *child = children[0];
|
||||
if ([child class] != [RNSVGGroup class]) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user