From bf03e86bc769f0d10000b70b0a98372f41d2bd4d Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 24 Feb 2023 05:21:11 -0800 Subject: [PATCH] Use RNTester init also in the old arch when Fabric is enabled (#36283) Summary: This PR fixes the initialization path of RNTester when it is run with the Old Arch and Fabric enabled ## Changelog [iOS][Fixed] - Make sure to initialize the contextContainer in the Old Arch with Fabric enabled Pull Request resolved: https://github.com/facebook/react-native/pull/36283 Test Plan: Tested manually on RNTester CircleCI is green Reviewed By: sammy-SC Differential Revision: D43568205 Pulled By: cipolleschi fbshipit-source-id: cddba97629b542a044191da14221f3300a9d879f --- packages/rn-tester/RNTester/AppDelegate.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 96afba854ef..38ec36c2349 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -88,7 +88,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot"; @implementation AppDelegate -#if RCT_NEW_ARCH_ENABLED +#ifdef RN_FABRIC_ENABLED - (instancetype)init { if (self = [super init]) {