We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88b82e commit 4a211ccCopy full SHA for 4a211cc
Libraries/ReactNative/UIManager.js
@@ -59,10 +59,8 @@ UIManager.getViewManagerConfig = function(viewManagerName: string) {
59
60
// If we're in the Chrome Debugger, let's not even try calling the sync
61
// method.
62
- if (__DEV__) {
63
- if (!global.nativeCallSyncHook) {
64
- return config;
65
- }
+ if (!global.nativeCallSyncHook) {
+ return config;
66
}
67
68
if (UIManager.lazilyLoadView && !triedLoadingConfig.has(viewManagerName)) {
@@ -155,7 +153,7 @@ if (
155
153
156
154
157
158
-if (__DEV__) {
+if (!global.nativeCallSyncHook) {
159
Object.keys(UIManager).forEach(viewManagerName => {
160
if (!UIManagerProperties.includes(viewManagerName)) {
161
if (!viewManagerConfigs[viewManagerName]) {
0 commit comments