diff --git a/React/Views/RCTNavigator.m b/React/Views/RCTNavigator.m index 8b67222aa..2ff678eed 100644 --- a/React/Views/RCTNavigator.m +++ b/React/Views/RCTNavigator.m @@ -417,6 +417,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) - (void)layoutSubviews { [super layoutSubviews]; + [self reactAddControllerToClosestParent:_navigationController]; _navigationController.view.frame = self.bounds; } diff --git a/React/Views/RCTTabBar.m b/React/Views/RCTTabBar.m index 13d60f113..2c0dc28e9 100644 --- a/React/Views/RCTTabBar.m +++ b/React/Views/RCTTabBar.m @@ -80,6 +80,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) - (void)layoutSubviews { [super layoutSubviews]; + [self reactAddControllerToClosestParent:_tabController]; _tabController.view.frame = self.bounds; }