From 3b5ee9d82e38286caecc11c0d58f62e13de2801e Mon Sep 17 00:00:00 2001 From: Dawid Date: Tue, 26 Nov 2024 16:58:11 +0100 Subject: [PATCH] sending subviews frames on fabric --- ios/RNSScreenStack.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/RNSScreenStack.mm b/ios/RNSScreenStack.mm index e6d54e821..11589b225 100644 --- a/ios/RNSScreenStack.mm +++ b/ios/RNSScreenStack.mm @@ -113,10 +113,12 @@ - (void)maybeUpdateHeaderInsetsInShadowTreeForScreen:(RNSScreen *)screenControll [headerConfig updateHeaderConfigState:self.navigationBar.frame.size :self.navigationBar.frame.origin]; +#ifdef RCT_NEW_ARCH_ENABLED for (RNSScreenStackHeaderSubview *subview in headerConfig.reactSubviews) { CGRect frameToNavigationBar = [subview convertRect:subview.frame toView:self.navigationBar]; [subview updateHeaderSubviewFrame:frameToNavigationBar]; } +#endif } #endif