diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 06a93340bc8..6dc81373132 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -298,6 +298,14 @@ BatchedBridge.registerCallableModule('AppRegistry', AppRegistry); if (__DEV__) { const LogBoxInspector = require('../LogBox/LogBoxInspectorContainer').default; AppRegistry.registerComponent('LogBox', () => LogBoxInspector); +} else { + AppRegistry.registerComponent( + 'LogBox', + () => + function NoOp() { + return null; + }, + ); } module.exports = AppRegistry;