diff --git a/Libraries/ReactNative/UIManager.js b/Libraries/ReactNative/UIManager.js index 98305d913b9f53..d74baad9446b2e 100644 --- a/Libraries/ReactNative/UIManager.js +++ b/Libraries/ReactNative/UIManager.js @@ -59,10 +59,8 @@ UIManager.getViewManagerConfig = function(viewManagerName: string) { // If we're in the Chrome Debugger, let's not even try calling the sync // method. - if (__DEV__) { - if (!global.nativeCallSyncHook) { - return config; - } + if (!global.nativeCallSyncHook) { + return config; } if (UIManager.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) { @@ -155,7 +153,7 @@ if ( } } -if (__DEV__) { +if (!global.nativeCallSyncHook) { Object.keys(UIManager).forEach(viewManagerName => { if (!UIManagerProperties.includes(viewManagerName)) { if (!viewManagerConfigs[viewManagerName]) {