From 8dfed7df4b579bf9e8c32fe831b380176c8a72b7 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Fri, 27 Dec 2024 04:16:25 -0800 Subject: [PATCH] RNTester: Fixes crash when app back to background (#48385) Summary: https://github.com/facebook/react-native/issues/48376 removed `applicationDidEnterBackground` from `RCTAppDelegate` but RNTester called it, leads to crash. cc cipolleschi can you please help to review? ## Changelog: [INTERNAL] [FIXED] - RNTester: Fixes crash when app back to background Pull Request resolved: https://github.com/facebook/react-native/pull/48385 Test Plan: RNTester iOS back to background not crash. Reviewed By: cipolleschi Differential Revision: D67657449 Pulled By: philIip fbshipit-source-id: e6d806b2677050fa2faa273a7468055d9d21c2a3 --- packages/rn-tester/RNTester/AppDelegate.mm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 64c5d4122e7..c69b35ef677 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -53,11 +53,6 @@ static NSString *kBundlePath = @"js/RNTesterApp.ios"; return [super application:application didFinishLaunchingWithOptions:launchOptions]; } -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - [super applicationDidEnterBackground:application]; -} - - (NSDictionary *)prepareInitialProps { NSMutableDictionary *initProps = [NSMutableDictionary new];