We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c976f commit d1dd984Copy full SHA for d1dd984
React/CxxBridge/RCTCxxBridge.mm
@@ -392,7 +392,7 @@ - (void)start
392
// Prepare executor factory (shared_ptr for copy into block)
393
std::shared_ptr<JSExecutorFactory> executorFactory;
394
if (!self.executorClass) {
395
- if ([self.delegate conformsToProtocol:@protocol(RCTCxxBridgeDelegate)]) {
+ if ([self.delegate respondsToSelector:@selector(jsExecutorFactoryForBridge:)]) {
396
id<RCTCxxBridgeDelegate> cxxDelegate = (id<RCTCxxBridgeDelegate>)self.delegate;
397
executorFactory = std::make_shared<JSCExecutorFactory>(*reinterpret_cast<JSCExecutorFactory *>([cxxDelegate jsExecutorFactoryForBridge:self]));
398
}
0 commit comments