From 364a0bdc6a3fbd8d6bc7b92e00ad3a071e87b0ba Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Tue, 24 Oct 2023 15:06:03 +0800 Subject: [PATCH] [iOS] RNTester enable concurrent root when using Fabric --- packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h | 2 -- packages/rn-tester/RNTester/AppDelegate.mm | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h index c4ee6066af2bc6..2c878eac933738 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h @@ -101,8 +101,6 @@ * By default, it assigns the rootView to the view property of the rootViewController * If you are not using a simple UIViewController, then there could be other methods to use to setup the rootView. * For example: UISplitViewController requires `setViewController(_:for:)` - * - * @return: void */ - (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController; diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 40582e7296bb95..3f1209e361557c 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -36,12 +36,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( self.moduleName = @"RNTesterApp"; // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native. - self.initialProps = [self prepareInitialProps]; + self.initialProps = [self setUpInitialProps]; return [super application:application didFinishLaunchingWithOptions:launchOptions]; } -- (NSDictionary *)prepareInitialProps +- (NSDictionary *)setUpInitialProps { NSMutableDictionary *initProps = [NSMutableDictionary new];