diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm index 5ac436b606d..c0065b72715 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -131,6 +131,11 @@ static NSDictionary *updateInitialProps(NSDictionary *initialProps, BOOL isFabri return YES; } +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Noop +} + - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { [NSException raise:@"RCTBridgeDelegate::sourceURLForBridge not implemented" diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index bb72dbd41dd..26168a3e495 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -8,6 +8,7 @@ #import "AppDelegate.h" #import +#import #import #import #import @@ -21,26 +22,12 @@ #import #endif -// FB-internal imports -#ifdef RN_DISABLE_OSS_PLUGIN_HEADER -#import -#endif - -#if BUNDLE_PATH -NSString *kBundlePath = @"xplat/js/RKJSModules/EntryPoints/RNTesterBundle.js"; -#else -NSString *kBundlePath = @"js/RNTesterApp.ios"; -#endif +static NSString *kBundlePath = @"js/RNTesterApp.ios"; @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { -#ifdef RN_DISABLE_OSS_PLUGIN_HEADER - // FB-internal app init setup. - RCTFBAppInitApplicationDidFinishLaunching(launchOptions); -#endif - 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. @@ -51,10 +38,7 @@ NSString *kBundlePath = @"js/RNTesterApp.ios"; - (void)applicationDidEnterBackground:(UIApplication *)application { -#ifdef RN_DISABLE_OSS_PLUGIN_HEADER - // FB-internal app backgrounding setup. - RCTFBAppInitApplicationDidEnterBackground(application); -#endif + [super applicationDidEnterBackground:application]; } - (NSDictionary *)prepareInitialProps @@ -131,6 +115,13 @@ NSString *kBundlePath = @"js/RNTesterApp.ios"; #endif +#pragma mark - New Arch Enabled settings + +- (BOOL)bridgelessEnabled +{ + return [super bridgelessEnabled]; +} + #pragma mark - RCTComponentViewFactoryComponentProvider #ifndef RN_DISABLE_OSS_PLUGIN_HEADER