mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Fabric: Removing references to MessageQueueThread in RCTSurfacePresenter
Summary: The particular meaningful piece of code that diff removes was added as (successful) attempt to fix an issue which was lately fixed by D14868547. Reviewed By: mdvacca Differential Revision: D15242046 fbshipit-source-id: 88a3e3c629d7c5f84c402b03e45034644147fec4
This commit is contained in:
committed by
Facebook Github Bot
parent
233fddbe01
commit
656c415f76
@@ -10,7 +10,6 @@
|
||||
#import <objc/runtime.h>
|
||||
#import <mutex>
|
||||
#import <jsi/jsi.h>
|
||||
#import <cxxreact/MessageQueueThread.h>
|
||||
|
||||
#import <React/RCTAssert.h>
|
||||
#import <React/RCTBridge+Private.h>
|
||||
@@ -42,7 +41,6 @@
|
||||
using namespace facebook::react;
|
||||
|
||||
@interface RCTBridge ()
|
||||
- (std::shared_ptr<facebook::react::MessageQueueThread>)jsMessageThread;
|
||||
- (void)invokeAsync:(std::function<void()> &&)func;
|
||||
@end
|
||||
|
||||
@@ -225,12 +223,6 @@ using namespace facebook::react;
|
||||
|
||||
_contextContainer->registerInstance(_reactNativeConfig, "ReactNativeConfig");
|
||||
|
||||
auto messageQueueThread = _batchedBridge.jsMessageThread;
|
||||
if (messageQueueThread) {
|
||||
// Make sure initializeBridge completed
|
||||
messageQueueThread->runOnQueueSync([] {});
|
||||
}
|
||||
|
||||
auto runtime = (facebook::jsi::Runtime *)((RCTCxxBridge *)_batchedBridge).runtime;
|
||||
|
||||
RuntimeExecutor runtimeExecutor = [self, runtime](std::function<void(facebook::jsi::Runtime & runtime)> &&callback) {
|
||||
|
||||
Reference in New Issue
Block a user