mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove log info when TurboModule cannot be found
Summary: Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D28749474 fbshipit-source-id: 28079904023f23e88b4f5bca45d7e600171e929e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fff0107e5a
commit
8a5ee96354
@@ -26,15 +26,6 @@ function requireModule<T: TurboModule>(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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user