mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Avoid double assignment of runtime scheduler (#36801)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36801 changelog: [internal] This looks like a typo. Reviewed By: cipolleschi Differential Revision: D44670852 fbshipit-source-id: 59891a6256be366601e4791a733df9b68e8c2a68
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7aa9936835
commit
deaef09d7f
@@ -130,8 +130,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
|
||||
#pragma mark - RCTCxxBridgeDelegate
|
||||
- (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge
|
||||
{
|
||||
_runtimeScheduler = _runtimeScheduler =
|
||||
std::make_shared<facebook::react::RuntimeScheduler>(RCTRuntimeExecutorFromBridge(bridge));
|
||||
_runtimeScheduler = std::make_shared<facebook::react::RuntimeScheduler>(RCTRuntimeExecutorFromBridge(bridge));
|
||||
std::shared_ptr<facebook::react::CallInvoker> callInvoker =
|
||||
std::make_shared<facebook::react::RuntimeSchedulerCallInvoker>(_runtimeScheduler);
|
||||
self.turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge delegate:self jsInvoker:callInvoker];
|
||||
|
||||
Reference in New Issue
Block a user