In iOS APP,error in react native rootView UI layout when the rootView is the tabbar rootview #21062
Labels
Platform: iOS
iOS applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Environment
OS: macOS High Sierra 10.13.2
Node: 8.11.3
npm: 5.6.0
Xcode: Xcode 9.4 (9F1027a)
Packages: (wanted => installed)
react: 16.3.1 => 16.4.0
react-native: 0.54.3
Description
In iOS APP,we have two ViewController A/B that carry react native RCTRootView , AVC is the tabbar RootVC , when AVC push to BVC , then BVC pop to AVC , the AVC carry react native RCTRootView
s frame Rendering error . then, we found the react native RCTRootView
s frame is right, but the RCTRootContentView`frame is error, and the RCTView maybe rendering many times.In AVC/BVC, my iOS code:
(void)loadView {
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:self.rnBridge moduleName:self.rnModuleName initialProperties:[self rnProperties]];
self.view = rootView;
}
AVC push BVC
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:rnController animated:animated];
BVC pop AVC
[self.navigationController popViewControllerAnimated:animated];
the error
The text was updated successfully, but these errors were encountered: