From 4f45e5f7653ff7fffcb6e4ce84ce5c3b3b812581 Mon Sep 17 00:00:00 2001 From: tboba Date: Wed, 11 Oct 2023 19:24:26 +0200 Subject: [PATCH] Change self.topViewController to screenController --- ios/RNSScreenStack.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNSScreenStack.mm b/ios/RNSScreenStack.mm index 61fe072086..52ef55060a 100644 --- a/ios/RNSScreenStack.mm +++ b/ios/RNSScreenStack.mm @@ -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]; } } }