diff --git a/packages/react-native/React/Views/RCTShadowView.m b/packages/react-native/React/Views/RCTShadowView.m index c54940a2212866..8effd4a3c688af 100644 --- a/packages/react-native/React/Views/RCTShadowView.m +++ b/packages/react-native/React/Views/RCTShadowView.m @@ -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 *selfSuperviews = [NSMutableSet set]; for (RCTShadowView *view = self; view != nil; view = [view reactSuperview]) { [selfSuperviews addObject:view];