File tree 1 file changed +2
-2
lines changed
packages/react-native/Libraries/Text/Text
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ - (void)uiManagerWillPerformMounting
84
84
exclusiveOwnership: YES ];
85
85
86
86
NSNumber *tag = self.reactTag ;
87
- NSMutableSet <NSNumber *> *descendantViewTags = [NSMutableSet new ]; // [macOS] avoids duplicates
87
+ NSMutableArray <NSNumber *> *descendantViewTags = [NSMutableArray new ];
88
88
89
89
#if !TARGET_OS_OSX // [macOS]
90
90
[textStorage enumerateAttribute: RCTBaseTextShadowViewEmbeddedShadowViewAttributeName
@@ -121,7 +121,7 @@ - (void)uiManagerWillPerformMounting
121
121
}
122
122
123
123
NSMutableArray <RCTPlatformView *> *descendantViews = [NSMutableArray arrayWithCapacity: descendantViewTags.count]; // [macOS]
124
- [[ descendantViewTags allObjects ] // [macOS] because it's an NSMutableSet now
124
+ [descendantViewTags
125
125
enumerateObjectsUsingBlock: ^(NSNumber *_Nonnull descendantViewTag, NSUInteger index , BOOL *_Nonnull stop) {
126
126
RCTPlatformView *descendantView = viewRegistry[descendantViewTag]; // [macOS]
127
127
if (!descendantView) {
You can’t perform that action at this time.
0 commit comments