Skip to content

Commit

Permalink
sending subviews frames on fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
coado committed Nov 26, 2024
1 parent 61f2f9d commit 3b5ee9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/RNSScreenStack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3b5ee9d

Please sign in to comment.