Add controller to closest parent on time so as to fix the automaticallyAdjustContentInsets feature.
Summary: Here's the bug to fix: https://github.com/facebook/react-native/issues/898 Closes https://github.com/facebook/react-native/pull/3509 Reviewed By: svcscm Differential Revision: D2574869 Pulled By: javache fb-gh-sync-id: 8d947c2a0edcfb695c2e209c7b44ae6417b6233e
This commit is contained in:
parent
bc409ba2da
commit
772010a9af
|
@ -417,6 +417,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||||
- (void)layoutSubviews
|
- (void)layoutSubviews
|
||||||
{
|
{
|
||||||
[super layoutSubviews];
|
[super layoutSubviews];
|
||||||
|
[self reactAddControllerToClosestParent:_navigationController];
|
||||||
_navigationController.view.frame = self.bounds;
|
_navigationController.view.frame = self.bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||||
- (void)layoutSubviews
|
- (void)layoutSubviews
|
||||||
{
|
{
|
||||||
[super layoutSubviews];
|
[super layoutSubviews];
|
||||||
|
[self reactAddControllerToClosestParent:_tabController];
|
||||||
_tabController.view.frame = self.bounds;
|
_tabController.view.frame = self.bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue