mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
c80192c2ab
commit
898124541c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user