diff --git a/packages/react-native/React/Base/RCTModuleData.mm b/packages/react-native/React/Base/RCTModuleData.mm index dbbc6daa9aa..1be7a2af25e 100644 --- a/packages/react-native/React/Base/RCTModuleData.mm +++ b/packages/react-native/React/Base/RCTModuleData.mm @@ -77,20 +77,6 @@ int32_t getUniqueId() !_instance && [_moduleClass instanceMethodForSelector:@selector(init)] != objectInitMethod; _requiresMainQueueSetup = _hasConstantsToExport || hasCustomInit; - if (_requiresMainQueueSetup) { - const char *methodName = ""; - if (_hasConstantsToExport) { - methodName = "constantsToExport"; - } else if (hasCustomInit) { - methodName = "init"; - } - RCTLogWarn( - @"Module %@ requires main queue setup since it overrides `%s` but doesn't implement " - "`requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules " - "on a background thread unless explicitly opted-out of.", - _moduleClass, - methodName); - } } } 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 ad8fadd04b1..e01659a871f 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 @@ -879,19 +879,7 @@ static Class getFallbackClassFromName(const char *name) */ const BOOL hasCustomInit = [moduleClass instanceMethodForSelector:@selector(init)] != objectInitMethod; - BOOL requiresMainQueueSetup = hasConstantsToExport || hasCustomInit; - if (requiresMainQueueSetup) { - RCTLogWarn( - @"Module %@ requires main queue setup since it overrides `%s` but doesn't implement " - "`requiresMainQueueSetup`. In a future release React Native will default to initializing all NativeModules " - "on a background thread unless explicitly opted-out of.", - moduleClass, - hasConstantsToExport ? "constantsToExport" - : hasCustomInit ? "init" - : ""); - } - - return requiresMainQueueSetup; + return hasConstantsToExport || hasCustomInit; } - (void)installJSBindings:(facebook::jsi::Runtime &)runtime