diff --git a/Libraries/Utilities/codegenNativeComponent.js b/Libraries/Utilities/codegenNativeComponent.js index 4b87322d4a6ff5..673544ad44e446 100644 --- a/Libraries/Utilities/codegenNativeComponent.js +++ b/Libraries/Utilities/codegenNativeComponent.js @@ -34,15 +34,14 @@ function codegenNativeComponent( componentName: string, options?: Options, ): NativeComponentType { - const errorMessage = - "Native Component '" + - componentName + - "' that calls codegenNativeComponent was not code generated at build time. Please check its definition."; if (global.RN$Bridgeless === true) { + const errorMessage = + "Native Component '" + + componentName + + "' that calls codegenNativeComponent was not code generated at build time. Please check its definition."; console.error(errorMessage); - } else { - console.warn(errorMessage); } + let componentNameInUse = options && options.paperComponentName != null ? options.paperComponentName