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 authored and Facebook Github Bot committed 2019-08-30 19:04:14 -07:00
1 parent c80192c2ab
commit 898124541c
5 files changed
+68 -1

No files matched your search

@@ -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);
}
}
/**