mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
1 parent
d0b1d49e9a
commit
e1d17c8138
1 file changed
+4
-7
@@ -98,13 +98,10 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
||||
|
||||
_scheduler = [self _createScheduler];
|
||||
|
||||
auto reactNativeConfig = _contextContainer->at<std::shared_ptr<ReactNativeConfig const>>("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;
|
||||
|
||||
Reference in new issue
Block a user