From e1d17c813800016d044ad9258346b37b9bad6cf8 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 20 Jul 2022 05:47:26 -0700 Subject: [PATCH] delete mobile config react_native_new_architecture:suspend_before_app_termination Summary: changelog: [internal] Remove shipped mobile config Reviewed By: mdvacca Differential Revision: D37913252 fbshipit-source-id: f1557e2b93b7f0410385e4dec41ec354e46d04f1 --- React/Fabric/RCTSurfacePresenter.mm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/React/Fabric/RCTSurfacePresenter.mm b/React/Fabric/RCTSurfacePresenter.mm index df612c2bbad..6c26e253a03 100644 --- a/React/Fabric/RCTSurfacePresenter.mm +++ b/React/Fabric/RCTSurfacePresenter.mm @@ -98,13 +98,10 @@ static BackgroundExecutor RCTGetBackgroundExecutor() _scheduler = [self _createScheduler]; - auto reactNativeConfig = _contextContainer->at>("ReactNativeConfig"); - if (reactNativeConfig->getBool("react_native_new_architecture:suspend_before_app_termination")) { - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(_applicationWillTerminate) - name:UIApplicationWillTerminateNotification - object:nil]; - } + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_applicationWillTerminate) + name:UIApplicationWillTerminateNotification + object:nil]; } return self;