Skip to content

In iOS APP,error in react native rootView UI layout when the rootView is the tabbar rootview #21062

@CyanSmile

Description

@CyanSmile

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 RCTRootViews frame Rendering error . then, we found the react native RCTRootViews 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
img_1bf4cb4ff430-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSiOS applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions