Skip to content

Commit 4a211cc

Browse files
authored
Check nativeCallSyncHook on both dev and ship (#92)
1 parent f88b82e commit 4a211cc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Libraries/ReactNative/UIManager.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ UIManager.getViewManagerConfig = function(viewManagerName: string) {
5959

6060
// If we're in the Chrome Debugger, let's not even try calling the sync
6161
// method.
62-
if (__DEV__) {
63-
if (!global.nativeCallSyncHook) {
64-
return config;
65-
}
62+
if (!global.nativeCallSyncHook) {
63+
return config;
6664
}
6765

6866
if (UIManager.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) {
@@ -155,7 +153,7 @@ if (
155153
}
156154
}
157155

158-
if (__DEV__) {
156+
if (!global.nativeCallSyncHook) {
159157
Object.keys(UIManager).forEach(viewManagerName => {
160158
if (!UIManagerProperties.includes(viewManagerName)) {
161159
if (!viewManagerConfigs[viewManagerName]) {

0 commit comments

Comments
 (0)