/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */#import "AppDelegate.h"#import <React/RCTBundleURLProvider.h>#import <React/RCTRootView.h>@implementationAppDelegate-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{NSURL*jsCodeLocation;jsCodeLocation=[[RCTBundleURLProvidersharedSettings]jsBundleURLForBundleRoot:@"index"fallbackResource:nil];RCTRootView*rootView=[[RCTRootViewalloc]initWithBundleURL:jsCodeLocationmoduleName:@"jproject"initialProperties:nillaunchOptions:launchOptions];rootView.backgroundColor=[[UIColoralloc]initWithRed:1.0fgreen:1.0fblue:1.0falpha:1];self.window=[[UIWindowalloc]initWithFrame:[UIScreenmainScreen].bounds];UIViewController*rootViewController=[UIViewControllernew];rootViewController.view=rootView;self.window.rootViewController=rootViewController;[self.windowmakeKeyAndVisible];returnYES;}@end