Remove usage of FabricUIManager Module related to NativeDriverAnimations

Summary:
This diff removes references to FabricUIManager from UIManagerModule, these callsited were originally used for NativeAnimatedDriver, but they are not used anymore

changelog: [internal] internal

Reviewed By: JoshuaGross, shergin

Differential Revision: D26035388

fbshipit-source-id: d4825af17f6948d922c42670f2c7b02498c12039
This commit is contained in:
David Vacca
2021-01-25 03:02:07 -08:00
committed by Facebook GitHub Bot
parent 5d62b4a19a
commit 164e133a98
@@ -421,16 +421,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
*/
@Override
public void synchronouslyUpdateViewOnUIThread(int tag, ReadableMap props) {
int uiManagerType = ViewUtil.getUIManagerType(tag);
if (uiManagerType == FABRIC) {
UIManager fabricUIManager =
UIManagerHelper.getUIManager(getReactApplicationContext(), uiManagerType);
if (fabricUIManager != null) {
fabricUIManager.synchronouslyUpdateViewOnUIThread(tag, props);
}
} else {
mUIImplementation.synchronouslyUpdateViewOnUIThread(tag, new ReactStylesDiffMap(props));
}
mUIImplementation.synchronouslyUpdateViewOnUIThread(tag, new ReactStylesDiffMap(props));
}
/**
@@ -533,25 +524,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
FLog.d(ReactConstants.TAG, message);
PrinterHolder.getPrinter().logMessage(ReactDebugOverlayTags.UI_MANAGER, message);
}
int uiManagerType = ViewUtil.getUIManagerType(tag);
if (uiManagerType == FABRIC) {
ReactApplicationContext reactApplicationContext = getReactApplicationContext();
if (reactApplicationContext.hasActiveCatalystInstance()) {
final UIManager fabricUIManager =
UIManagerHelper.getUIManager(reactApplicationContext, uiManagerType);
if (fabricUIManager != null) {
reactApplicationContext.runOnUiQueueThread(
new Runnable() {
@Override
public void run() {
fabricUIManager.synchronouslyUpdateViewOnUIThread(tag, props);
}
});
}
}
} else {
mUIImplementation.updateView(tag, className, props);
}
mUIImplementation.updateView(tag, className, props);
}
/**