Skip to content

Commit

Permalink
Clarify a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gleitman committed Jul 9, 2024
1 parent bc4d5d0 commit bcaee62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/React/Views/RCTShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ - (CGRect)measureLayoutRelativeToAncestor:(RCTShadowView *)ancestor
// [macOS
- (RCTShadowView *)ancestorSharedWithShadowView:(RCTShadowView *)shadowView
{
// TODO: This can be optimized by climbing up both hierarchies at the same time
// TODO: Can this be optimized by climbing up both hierarchies at the same time?
NSMutableSet<RCTShadowView *> *selfSuperviews = [NSMutableSet set];
for (RCTShadowView *view = self; view != nil; view = [view reactSuperview]) {
[selfSuperviews addObject:view];
Expand Down

0 comments on commit bcaee62

Please sign in to comment.