Skip to content

Commit

Permalink
Change vc to self.screenView.controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Oct 11, 2023
1 parent 2d8592c commit dda38c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreenStackHeaderConfig.mm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ - (void)updateViewControllerIfNeeded
// As the header might have change in `updateViewController` we need to ensure that header height
// returned by the `onHeaderHeightChange` event is correct.
if ([vc isKindOfClass:[RNSScreen class]]) {
[(RNSScreen *)vc calculateAndNotifyHeaderHeightChangeIsModal:NO];
[(RNSScreen *)self.screenView.controller calculateAndNotifyHeaderHeightChangeIsModal:NO];
}
}
}
Expand Down

0 comments on commit dda38c3

Please sign in to comment.