iOS原生项目集成RN之后,运行时内存过高



  • NSURL *jsCodeLocation = nil;

    jsCodeLocation = [NSURL
                             URLWithString:@"http://localhost:8081/index.bundle?platform=ios&dev=false"];
    
    self.rootView = [[RCTRootView alloc] initWithBundleURL : jsCodeLocation moduleName: @"RNandOC" initialProperties :self.param launchOptions: nil];
    self.rootView.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:self.rootView];
    

    就像这样很简单的一个集成,运行时内存过高,而且VC释放之后,内存降不下来,请问哪位大神清楚怎么回事,谢谢!


Log in to reply