mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +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:
@@ -311,7 +311,7 @@ RNSVGTopAlignedLabel *label;
|
||||
|
||||
NSString *str = self.content;
|
||||
if (!str) {
|
||||
for (RNSVGView *node in self.subviews) {
|
||||
for (RNSVGPlatformView *node in self.subviews) {
|
||||
if ([node isKindOfClass:[RNSVGText class]]) {
|
||||
RNSVGText *text = (RNSVGText *)node;
|
||||
advance += [text getSubtreeTextChunksTotalAdvance];
|
||||
|
||||
@@ -345,7 +345,7 @@ using namespace facebook::react;
|
||||
return cachedAdvance;
|
||||
}
|
||||
CGFloat advance = 0;
|
||||
for (RNSVGView *node in self.subviews) {
|
||||
for (RNSVGPlatformView *node in self.subviews) {
|
||||
if ([node isKindOfClass:[RNSVGText class]]) {
|
||||
RNSVGText *text = (RNSVGText *)node;
|
||||
advance += [text getSubtreeTextChunksTotalAdvance];
|
||||
|
||||
Reference in New Issue
Block a user