From 8a5ee96354a8e6f785e207c7e81f3ea6cb8ed29b Mon Sep 17 00:00:00 2001 From: Paige Sun Date: Thu, 27 May 2021 10:41:03 -0700 Subject: [PATCH] Remove log info when TurboModule cannot be found Summary: Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D28749474 fbshipit-source-id: 28079904023f23e88b4f5bca45d7e600171e929e --- Libraries/TurboModule/TurboModuleRegistry.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Libraries/TurboModule/TurboModuleRegistry.js b/Libraries/TurboModule/TurboModuleRegistry.js index c8069e1b126..90e30dd0815 100644 --- a/Libraries/TurboModule/TurboModuleRegistry.js +++ b/Libraries/TurboModule/TurboModuleRegistry.js @@ -26,15 +26,6 @@ function requireModule(name: string): ?T { if (turboModuleProxy != null) { const module: ?T = turboModuleProxy(name); - if (module == null) { - // Common fixes: Verify the TurboModule is registered in the native binary, and adopts the code generated type-safe Spec base class. - // Safe to ignore when caused by importing legacy modules that are unused. - console.info( - 'Unable to get TurboModule for ' + - name + - '. Safe to ignore if module works.', - ); - } return module; }