是否可以在React Native库中加载.XIB或Storyboard?

时间:2019-02-09 09:53:43

标签: react-native react-native-ios

我已经创建了一个模块来响应本机,它有五个viewcontroller。所以我将XIB用于每个ViewController。但是XIB不会加载到库中。

RCT_EXPORT_METHOD(showFirstVC){

    UIViewController *root = RCTPresentedViewController();

   FVCViewController *ViewController = (FVCViewController *)[[UIViewController alloc] initWithNibName:@"FVCViewController" bundle:nil];

   UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:ViewController];
   navController.navigationBarHidden = YES;

    [root presentViewController:ViewController animated:YES completion:nil];
}

您能帮我在React Native中将XIB或Storyboard加载到库中吗?

0 个答案:

没有答案