react-native-macos/Libraries/ReactNative
Andrew Coates 49b3b31d8e Native component check in deprecatedPropType was inverted (#31164)
Summary:
While investigating an issue hit on a recent sync of [react-native-windows](https://github.com/microsoft/react-native-windows) I noticed that e68cf7cee9 appears to have accidently inverted the logic to avoid checking native components.

`!UIManager.getViewManagerConfig(componentName)`
become
`UIManager.hasViewManagerConfig(componentName)`
losing the !

Also adding a check in PaperUIManager's getViewManagerConfig to avoid trying to call a sync method when using Chrome Debugging.

## Changelog

[Internal] [Fixed] - Restored the previous logic of deprecatedPropType

Pull Request resolved: https://github.com/facebook/react-native/pull/31164

Test Plan:
Change tested and being submitted in react-native-windows:
https://github.com/microsoft/react-native-windows/pull/7397

Reviewed By: hramos

Differential Revision: D30624302

Pulled By: fkgozali

fbshipit-source-id: 0f26e750283a1fa5eb5f44ecd2cf90617b6d931f
2021-08-30 18:03:27 -07:00
..
AppContainer.js Pass concurrentRoot flag through to renderApplication 2021-06-11 04:23:50 -07:00
AppRegistry.js Remove existential types from xplat/js 2021-07-21 16:52:22 -07:00
DisplayMode.js Simplify logic to coerce DisplayMode 2021-04-30 09:46:14 -07:00
DummyUIManager.js Migrate Shimmer.ios to use codegenNativeComponent 2021-04-30 17:41:25 -07:00
FabricUIManager.js Make RootTag an opaque type 2021-04-26 22:57:55 -07:00
HeadlessJsTaskError.js Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
I18nManager.js localeIdentifier missing from flow type of I18nManager (#31589) 2021-05-26 00:04:19 -07:00
NativeHeadlessJsTaskSupport.js Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
NativeI18nManager.js Make I18nManagerModule TurboModule-compatible 2021-03-10 14:55:29 -08:00
NativeUIManager.js Make RootTag an opaque type 2021-04-26 22:57:55 -07:00
PaperUIManager.js Native component check in deprecatedPropType was inverted (#31164) 2021-08-30 18:03:27 -07:00
ReactFabricInternals.js Partial React Sync from 241c4467...349ff315b 2020-02-13 19:45:08 -08:00
RootTag.js Make RootTag an opaque type 2021-04-26 22:57:55 -07:00
UIManager.js Make RootTag an opaque type 2021-04-26 22:57:55 -07:00
UIManagerInjection.js Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
UIManagerProperties.js Avoid the call to getViewManagerConfig on deprecatedPropType method 2021-01-26 14:05:33 -08:00
getCachedComponentWithDebugName.js Cache root components with display name to avoid invalidating whole subtree on updates 2021-04-30 09:46:14 -07:00
getNativeComponentAttributes.js RN: Update ViewConfig for ScrollView 2020-11-19 02:52:00 -08:00
queryLayoutByID.js Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
renderApplication.js Remove existential types from xplat/js 2021-07-21 16:52:22 -07:00
requireNativeComponent.js Introduce flow type to differentiate between HostComponent, NativeMethodsMixin, and NativeComponent 2019-09-25 10:12:38 -07:00