diff --git a/Libraries/ReactNative/PaperUIManager.js b/Libraries/ReactNative/PaperUIManager.js index c468958e566320..87cc101db310d4 100644 --- a/Libraries/ReactNative/PaperUIManager.js +++ b/Libraries/ReactNative/PaperUIManager.js @@ -34,6 +34,7 @@ function getConstants(): Object { function getViewManagerConfig(viewManagerName: string): any { if ( viewManagerConfigs[viewManagerName] === undefined && + global.nativeCallSyncHook && // If we're in the Chrome Debugger, let's not even try calling the sync method NativeUIManager.getConstantsForViewManager ) { try { diff --git a/Libraries/Utilities/deprecatedPropType.js b/Libraries/Utilities/deprecatedPropType.js index 1801f98cb1c2dd..0a0fc69aab2a0e 100644 --- a/Libraries/Utilities/deprecatedPropType.js +++ b/Libraries/Utilities/deprecatedPropType.js @@ -21,7 +21,7 @@ function deprecatedPropType( // Don't warn for native components. if ( global.RN$Bridgeless !== true && - UIManager.hasViewManagerConfig(componentName) && + !UIManager.hasViewManagerConfig(componentName) && props[propName] !== undefined ) { console.warn(