Skip to content

Commit

Permalink
delete mobile config react_native_new_architecture:suspend_before_app…
Browse files Browse the repository at this point in the history
…_termination

Summary:
changelog: [internal]

Remove shipped mobile config

Reviewed By: mdvacca

Differential Revision: D37913252

fbshipit-source-id: f1557e2b93b7f0410385e4dec41ec354e46d04f1
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Jul 20, 2022
1 parent d0b1d49 commit e1d17c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions React/Fabric/RCTSurfacePresenter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,10 @@ - (instancetype)initWithContextContainer:(ContextContainer::Shared)contextContai

_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;
Expand Down

0 comments on commit e1d17c8

Please sign in to comment.