Add warnings to deprecate UIManager methods when using Fabric + StaticViewConfigs enabled

Summary:
This diff reports warning when a method of the LazyUIManager is called when using fabric and StaticViewConfigs enabled

changelog: [Android][changed] Deprecate UIManager methods when using the new architecture enabled

Reviewed By: fkgozali

Differential Revision: D28108804

fbshipit-source-id: 4b430bdefa67914883a595dff97ea6c9ffd93361
This commit is contained in:
David Vacca 2021-04-30 17:39:43 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 37750100ac
Коммит fc52e93db5
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -100,9 +100,6 @@ const UIManagerJS = {
return getConstants();
},
getViewManagerConfig(viewManagerName: string): any {
console.warn(
'getViewManagerConfig is deprecated, use UIManager.hasViewManagerConfig instead.',
);
return getViewManagerConfig(viewManagerName);
},
hasViewManagerConfig(viewManagerName: string): boolean {