Skip to content

Commit

Permalink
Check nativeCallSyncHook on both dev and ship
Browse files Browse the repository at this point in the history
  • Loading branch information
statm committed Jun 18, 2019
1 parent f88b82e commit 314d727
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Libraries/ReactNative/UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -155,7 +153,7 @@ if (
}
}

if (__DEV__) {
if (!global.nativeCallSyncHook) {
Object.keys(UIManager).forEach(viewManagerName => {
if (!UIManagerProperties.includes(viewManagerName)) {
if (!viewManagerConfigs[viewManagerName]) {
Expand Down

0 comments on commit 314d727

Please sign in to comment.