Support sendAccessibilityEvent in Fabric

Summary: Support for `sendAccessibilityEvent` in the FabricUIManager.

Reviewed By: shergin

Differential Revision: D17142507

fbshipit-source-id: 5c131d7caa1e4189fd41ecfb558d0027394b6a15
This commit is contained in:
Joshua Gross
2019-08-30 19:02:33 -07:00
committed by Facebook Github Bot
parent c80192c2ab
commit 898124541c
5 changed files with 68 additions and 1 deletions
@@ -796,7 +796,14 @@ public class UIManagerModule extends ReactContextBaseJavaModule
@ReactMethod
public void sendAccessibilityEvent(int tag, int eventType) {
mUIImplementation.sendAccessibilityEvent(tag, eventType);
int uiManagerType = ViewUtil.getUIManagerType(tag);
if (uiManagerType == FABRIC) {
UIManager fabricUIManager =
UIManagerHelper.getUIManager(getReactApplicationContext(), uiManagerType);
fabricUIManager.sendAccessibilityEvent(tag, eventType);
} else {
mUIImplementation.sendAccessibilityEvent(tag, eventType);
}
}
/**