From fd873e8e966910ac1bc8e4d98b4d73e1c0ce332c Mon Sep 17 00:00:00 2001 From: Brian Zhao Date: Wed, 5 Jun 2019 18:35:07 -0700 Subject: [PATCH] Check nativeCallSyncHook on both dev and ship --- Libraries/ReactNative/UIManager.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Libraries/ReactNative/UIManager.js b/Libraries/ReactNative/UIManager.js index e7dd0691724881..19dfa44853a16e 100644 --- a/Libraries/ReactNative/UIManager.js +++ b/Libraries/ReactNative/UIManager.js @@ -78,10 +78,8 @@ const UIManagerJS: UIManagerJSInterface = { // 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 ( @@ -182,7 +180,7 @@ if (Platform.OS === 'ios') { } } -if (__DEV__) { +if (!global.nativeCallSyncHook) { Object.keys(getConstants()).forEach(viewManagerName => { if (!UIManagerProperties.includes(viewManagerName)) { if (!viewManagerConfigs[viewManagerName]) {