Skip to content

Commit

Permalink
Add isModal check
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Oct 13, 2023
1 parent b0243c7 commit dc987c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ - (void)setStatusBarHidden:(BOOL)statusBarHidden
// As the status bar could change its visibility, we need to calculate header
// height for the correct value in `onHeaderHeightChange` event when navigation
// bar is not visible.
if (self.controller.navigationController.navigationBarHidden) {
if (self.controller.navigationController.navigationBarHidden && !self.isModal) {
[self.controller calculateAndNotifyHeaderHeightChangeIsModal:NO];
}
}
Expand Down

0 comments on commit dc987c6

Please sign in to comment.