Skip to content

Commit 772010a

Browse files
rocmanfacebook-github-bot-4
authored andcommitted
Add controller to closest parent on time so as to fix the automaticallyAdjustContentInsets feature.
Summary: Here's the bug to fix: facebook/react-native#898 Closes facebook/react-native#3509 Reviewed By: svcscm Differential Revision: D2574869 Pulled By: javache fb-gh-sync-id: 8d947c2a0edcfb695c2e209c7b44ae6417b6233e
1 parent bc409ba commit 772010a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

React/Views/RCTNavigator.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ - (NSArray *)reactSubviews
417417
- (void)layoutSubviews
418418
{
419419
[super layoutSubviews];
420+
[self reactAddControllerToClosestParent:_navigationController];
420421
_navigationController.view.frame = self.bounds;
421422
}
422423

React/Views/RCTTabBar.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ - (void)removeReactSubview:(UIView *)subview
8080
- (void)layoutSubviews
8181
{
8282
[super layoutSubviews];
83+
[self reactAddControllerToClosestParent:_tabController];
8384
_tabController.view.frame = self.bounds;
8485
}
8586

0 commit comments

Comments
 (0)