From 1d0be6d2c8aa71cceef0072513fd8c13eb1aaf15 Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Fri, 5 May 2023 18:08:28 -0700 Subject: [PATCH] Filter out legacy modules from TurboModule system Summary: Changelog: [Internal] Reviewed By: philIip Differential Revision: D45628219 fbshipit-source-id: 8ff5c01f143b85ac199bc5913dba9c4fb5ec4700 --- .../core/platform/ios/ReactCommon/RCTTurboModuleManager.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm index cf440aef874..bbeda506b9d 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm @@ -407,7 +407,7 @@ static Class getFallbackClassFromName(const char *name) __block id module = nil; - if ([moduleClass conformsToProtocol:@protocol(RCTBridgeModule)]) { + if ([moduleClass conformsToProtocol:@protocol(RCTTurboModule)]) { __weak __typeof(self) weakSelf = self; dispatch_block_t work = ^{ auto strongSelf = weakSelf;