diff --git a/ios/RNSScreenStackHeaderConfig.m b/ios/RNSScreenStackHeaderConfig.m index d89816f72b..f03478a929 100644 --- a/ios/RNSScreenStackHeaderConfig.m +++ b/ios/RNSScreenStackHeaderConfig.m @@ -41,6 +41,13 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge return self; } +- (void) reactSetFrame:(CGRect)frame +{ + // Block any attempt to set coordinates on RNSScreenStackHeaderSubview. This + // makes UINavigationBar the only one to control the position of header content. + [super reactSetFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)]; +} + @end @implementation RNSScreenStackHeaderConfig {