Skip to content

Commit

Permalink
Change self.topViewController to screenController
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Oct 11, 2023
1 parent 3d4bd36 commit 4f45e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreenStack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ - (void)viewDidLayoutSubviews
// If RNSScreen includes a navigation controller of type RNSNavigationController, it should not calculate
// header height, as it could have nested stack.
if (![screenController hasNestedStack]) {
[(RNSScreen *)self.topViewController calculateAndNotifyHeaderHeightChangeIsModal:NO];
[screenController calculateAndNotifyHeaderHeightChangeIsModal:NO];
}
}
}
Expand Down

0 comments on commit 4f45e5f

Please sign in to comment.