We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d485e41 commit a81120eCopy full SHA for a81120e
React/CxxBridge/RCTCxxBridge.mm
@@ -334,7 +334,7 @@ - (void)start
334
// Prepare executor factory (shared_ptr for copy into block)
335
std::shared_ptr<JSExecutorFactory> executorFactory;
336
if (!self.executorClass) {
337
- if ([self.delegate conformsToProtocol:@protocol(RCTCxxBridgeDelegate)]) {
+ if ([self.delegate respondsToSelector:@selector(jsExecutorFactoryForBridge:)]) {
338
id<RCTCxxBridgeDelegate> cxxDelegate = (id<RCTCxxBridgeDelegate>)self.delegate;
339
executorFactory = std::make_shared<JSCExecutorFactory>(*reinterpret_cast<JSCExecutorFactory *>([cxxDelegate jsExecutorFactoryForBridge:self]));
340
}
0 commit comments