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:
Bohdan Artiukhov
2024-07-23 15:34:32 +02:00
committed by GitHub
parent 0d97399d06
commit 67620f5b6a
21 changed files with 459 additions and 260 deletions
+2 -2
View File
@@ -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;
}